dissect+peek: avoid deprecated ndn-cxx functions
Change-Id: Ibd9f8ad30e315f537d1560db823372af3d58d713
diff --git a/tools/peek/ndnpeek/ndnpeek.hpp b/tools/peek/ndnpeek/ndnpeek.hpp
index eba1b1f..f7f246b 100644
--- a/tools/peek/ndnpeek/ndnpeek.hpp
+++ b/tools/peek/ndnpeek/ndnpeek.hpp
@@ -48,13 +48,13 @@
bool mustBeFresh = false;
std::vector<Name> forwardingHint;
time::milliseconds interestLifetime = DEFAULT_INTEREST_LIFETIME;
- optional<uint8_t> hopLimit;
+ std::optional<uint8_t> hopLimit;
shared_ptr<Buffer> applicationParameters;
// program behavior options
bool isVerbose = false;
bool wantPayloadOnly = false;
- optional<time::milliseconds> timeout;
+ std::optional<time::milliseconds> timeout;
};
class NdnPeek : noncopyable