Fix compilation with boost 1.66.0

Change-Id: Ibf2883a974c834a5281c39a551e6d467d4454501
diff --git a/examples/consumer-with-timer.cpp b/examples/consumer-with-timer.cpp
index fc43044..a8154f5 100644
--- a/examples/consumer-with-timer.cpp
+++ b/examples/consumer-with-timer.cpp
@@ -27,6 +27,7 @@
 #include "face.hpp"
 #include "util/scheduler.hpp"
 
+#include <boost/asio/io_service.hpp>
 #include <iostream>
 
 // Enclosing code in ndn simplifies coding (can also use `using namespace ndn`)
@@ -34,7 +35,7 @@
 // Additional nested namespaces can be used to prevent/limit name conflicts
 namespace examples {
 
-class ConsumerWithTimer : noncopyable
+class ConsumerWithTimer
 {
 public:
   ConsumerWithTimer()
@@ -58,8 +59,7 @@
     std::cout << "Sending " << interest << std::endl;
 
     // Schedule a new event
-    m_scheduler.scheduleEvent(time::seconds(2),
-                              bind(&ConsumerWithTimer::delayedInterest, this));
+    m_scheduler.scheduleEvent(time::seconds(2), [this] { delayedInterest(); });
 
     // m_ioService.run() will block until all events finished or m_ioService.stop() is called
     m_ioService.run();