src: Adding conditional compilation against boost or bundled "ndnboost"
Change-Id: Ic6a9718d6cad920ffa7a1b4d74851a338ac6f5da
diff --git a/src/encoding/der/visitor/visitor.hpp b/src/encoding/der/visitor/visitor.hpp
index 5965ccb..06c469f 100644
--- a/src/encoding/der/visitor/visitor.hpp
+++ b/src/encoding/der/visitor/visitor.hpp
@@ -9,8 +9,15 @@
#ifndef NDN_DER_VISITOR_HPP
#define NDN_DER_VISITOR_HPP
+#include <ndn-cpp/common.hpp>
+
+#if NDN_CPP_USE_SYSTEM_BOOST
+#include <boost/any.hpp>
+namespace ndnboost = boost;
+#else
// We can use ndnboost::any because this is an internal header and will not conflict with the application if it uses boost::any.
#include <ndnboost/any.hpp>
+#endif
namespace ndn {