Improve and simplify code with modern C++ features
Change-Id: I28d84df3087492ab2ecbeb91169a2cde12c9e31e
diff --git a/src/common.hpp b/src/common.hpp
index 6de1e07..d990d94 100644
--- a/src/common.hpp
+++ b/src/common.hpp
@@ -79,6 +79,8 @@
using std::ref;
using std::cref;
+using namespace std::string_literals;
+
} // namespace ndn
using namespace std::placeholders;
@@ -90,7 +92,7 @@
namespace boost {
#define NDN_CXX_SPECIALIZE_BOOST_IS_PLACEHOLDER_FOR_STD_PLACEHOLDER(N) \
template<> \
- struct is_placeholder<typename std::remove_const<decltype(_##N)>::type> \
+ struct is_placeholder<std::remove_const_t<decltype(_##N)>> \
{ \
enum _vt { \
value = N \