In common.h, remove Ptr. In interest.h, etc. typedef InterestPtr and ConstInterestPtr, etc.
We will centralize and allow these to be typedef as boost::shared_ptr
or std::shared_ptr.
diff --git a/ndn-cpp/fields/name.h b/ndn-cpp/fields/name.h
index 18e2412..a356f8f 100644
--- a/ndn-cpp/fields/name.h
+++ b/ndn-cpp/fields/name.h
@@ -18,6 +18,10 @@
namespace ndn {
+class Name;
+typedef boost::shared_ptr<Name> NamePtr;
+typedef boost::shared_ptr<const Name> ConstNamePtr;
+
/**
* @brief Class for NDN Name
*/
@@ -393,8 +397,6 @@
std::vector<name::Component> m_comps;
};
-typedef boost::shared_ptr<Name> NamePtr;
-
inline std::ostream &
operator << (std::ostream &os, const Name &name)
{