In all .cpp files, remove using namespace ndn::ptr_lib and explicitly use ptr_lib::shared_ptr and make_shared.
diff --git a/src/security/identity/basic-identity-storage.cpp b/src/security/identity/basic-identity-storage.cpp
index 85af9a9..46a98bf 100644
--- a/src/security/identity/basic-identity-storage.cpp
+++ b/src/security/identity/basic-identity-storage.cpp
@@ -26,7 +26,6 @@
INIT_LOGGER("BasicIdentityStorage");
using namespace std;
-using namespace ndn::ptr_lib;
namespace ndn
{
@@ -445,7 +444,7 @@
sqlite3_finalize(statement);
}
-shared_ptr<Data>
+ptr_lib::shared_ptr<Data>
BasicIdentityStorage::getCertificate(const Name &certificateName, bool allowAny)
{
if (doesCertificateExist(certificateName)) {
@@ -469,7 +468,7 @@
int res = sqlite3_step(statement);
- shared_ptr<Data> data(new Data());
+ ptr_lib::shared_ptr<Data> data(new Data());
if (res == SQLITE_ROW)
data->wireDecode((const uint8_t*)sqlite3_column_blob(statement, 0), sqlite3_column_bytes(statement, 0));
@@ -479,7 +478,7 @@
}
else {
_LOG_DEBUG("Certificate does not exist!");
- return shared_ptr<Data>();
+ return ptr_lib::shared_ptr<Data>();
}
}