build: Always build in C++11 mode.
This commit also includes update of websocketpp submodule, as the
previous version has compilation problems on OSX with XCode 6.1
Change-Id: I8c9670d0026d840838d77e610e50679ee5ede7a5
Refs: #1930, #2082
diff --git a/tools/ndn-tlv-peek.cpp b/tools/ndn-tlv-peek.cpp
index dc70175..dca57e0 100644
--- a/tools/ndn-tlv-peek.cpp
+++ b/tools/ndn-tlv-peek.cpp
@@ -27,15 +27,19 @@
#include "version.hpp"
-#include <boost/asio.hpp>
+#include <boost/noncopyable.hpp>
#include <ndn-cxx/face.hpp>
namespace ndntlvpeek {
-class NdnTlvPeek
+using ndn::_1;
+using ndn::_2;
+
+class NdnTlvPeek : boost::noncopyable
{
public:
+ explicit
NdnTlvPeek(char* programName)
: m_programName(programName)
, m_mustBeFresh(false)
@@ -180,10 +184,8 @@
try
{
m_face.expressInterest(createInterestPacket(),
- ndn::func_lib::bind(&NdnTlvPeek::onData,
- this, _1, _2),
- ndn::func_lib::bind(&NdnTlvPeek::onTimeout,
- this, _1));
+ bind(&NdnTlvPeek::onData, this, _1, _2),
+ bind(&NdnTlvPeek::onTimeout, this, _1));
if (m_timeout < ndn::time::milliseconds::zero())
{
if (m_interestLifetime < ndn::time::milliseconds::zero())