In common.h, define namespace ptr_lib = boost, and use ptr_lib::shared_ptr<Name>, etc.
diff --git a/test/test-boost-header-only.cpp b/test/test-boost-header-only.cpp
index 03f3efa..3b5e906 100644
--- a/test/test-boost-header-only.cpp
+++ b/test/test-boost-header-only.cpp
@@ -7,6 +7,7 @@
#include <cstdlib>
#include <sstream>
+#include <iostream>
#include "ndn-cpp/fields/name.h"
#include "ndn-cpp/fields/name-component.h"
#include "ndn-cpp/interest.h"
@@ -19,7 +20,7 @@
*
*/
int main(int argc, char** argv) {
- InterestPtr interest(new Interest());
+ ptr_lib::shared_ptr<Interest> interest(new Interest());
interest->setName(Name("/test"));
interest->setMinSuffixComponents(2);
interest->setMaxSuffixComponents(2);