src: Fix compilation after ndn-cxx marked Component explicit

Change-Id: Id74423ea8144a16df63729153eba06f9f7943d1e
diff --git a/src/logic.hpp b/src/logic.hpp
index 3e88794..f901bb4 100644
--- a/src/logic.hpp
+++ b/src/logic.hpp
@@ -131,7 +131,7 @@
         const time::milliseconds& syncInterestLifetime = DEFAULT_SYNC_INTEREST_LIFETIME,
         const time::milliseconds& syncReplyFreshness = DEFAULT_SYNC_REPLY_FRESHNESS,
         const time::milliseconds& recoveryInterestLifetime = DEFAULT_RECOVERY_INTEREST_LIFETIME,
-        const name::Component& session = {});
+        const name::Component& session = name::Component());
 
   ~Logic();
 
@@ -170,7 +170,8 @@
    * @param session manually defined session ID
    */
   void
-  addUserNode(const Name& userPrefix, const Name& signingId = DEFAULT_NAME, const name::Component& session = {});
+  addUserNode(const Name& userPrefix, const Name& signingId = DEFAULT_NAME,
+              const name::Component& session = name::Component());
 
   /// @brief remove the node from the local session
   void
diff --git a/src/socket.hpp b/src/socket.hpp
index 81fc806..30c50d4 100644
--- a/src/socket.hpp
+++ b/src/socket.hpp
@@ -66,7 +66,7 @@
          const Name& signingId = DEFAULT_NAME,
          std::shared_ptr<Validator> validator = DEFAULT_VALIDATOR,
          const time::milliseconds& syncInterestLifetime = Logic::DEFAULT_SYNC_INTEREST_LIFETIME,
-         const name::Component& session = {});
+         const name::Component& session = name::Component());
 
   ~Socket();
 
@@ -86,7 +86,8 @@
    * @param session Manually defined session number
    */
   void
-  addSyncNode(const Name& prefix, const Name& signingId = DEFAULT_NAME, const name::Component& session = {});
+  addSyncNode(const Name& prefix, const Name& signingId = DEFAULT_NAME,
+              const name::Component& session = name::Component());
 
   /**
    * @brief Remove a sync node under same logic