sync: Avoid use of boost::serialization::null_deleter

Refs: #2072

Change-Id: Ie860c2d09d38025750be056d03d71b5de58f1c5b
diff --git a/src/communication/sync-logic-handler.cpp b/src/communication/sync-logic-handler.cpp
index c0638c7..8e679ba 100644
--- a/src/communication/sync-logic-handler.cpp
+++ b/src/communication/sync-logic-handler.cpp
@@ -29,10 +29,6 @@
 #include "sequencing-manager.hpp"
 #include "utility/name-helper.hpp"
 
-#include <boost/serialization/shared_ptr.hpp>
-
-using namespace boost::serialization;
-
 namespace nlsr {
 
 INIT_LOGGER("SyncLogicHandler");
@@ -124,6 +120,17 @@
 const std::string SyncLogicHandler::ADJACENCY_COMPONENT = "adjacency";
 const std::string SyncLogicHandler::COORDINATE_COMPONENT = "coordinate";
 
+
+template<class T>
+class NullDeleter
+{
+public:
+  void
+  operator()(T*)
+  {
+  }
+};
+
 void
 SyncLogicHandler::createSyncSocket()
 {
@@ -131,7 +138,7 @@
 
   // The face's lifetime is managed in main.cpp; SyncSocket should not manage the memory
   // of the object
-  ndn::shared_ptr<ndn::Face> facePtr(&m_syncFace, null_deleter());
+  ndn::shared_ptr<ndn::Face> facePtr(&m_syncFace, NullDeleter<ndn::Face>());
 
   m_syncSocket = ndn::make_shared<Sync::SyncSocket>(m_syncPrefix, m_validator, facePtr,
                                                     ndn::bind(&SyncLogicHandler::onNsyncUpdate,