From 2be827457aeed4780259ae3d8407bff26fcdb415 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 6 Apr 2018 11:30:10 +0100 Subject: C++17 Remove all boost things now in the standard library from nvpParse. --- libadhocutil/nvpParse.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libadhocutil/nvpParse.h b/libadhocutil/nvpParse.h index 185ec60..2a3eba9 100644 --- a/libadhocutil/nvpParse.h +++ b/libadhocutil/nvpParse.h @@ -5,7 +5,8 @@ #include #include #include -#include +#include +#include #include #ifndef yyFlexLexer #define yyFlexLexer nvpBaseFlexLexer @@ -29,7 +30,7 @@ class NvpParse : public yyFlexLexer { ValueNotFound(const std::string &); }; - typedef boost::function AssignFunc; + typedef std::function AssignFunc; typedef std::map AssignMap; template @@ -58,8 +59,8 @@ class NvpParse : public yyFlexLexer { }; /// @endcond -#define NvpTarget(T) std::map>> -#define NvpValue(c, m) { #m, boost::shared_ptr<::AdHoc::NvpParse::Target>(new ::AdHoc::NvpParse::Target(&c::m)) } +#define NvpTarget(T) std::map>> +#define NvpValue(c, m) { #m, std::shared_ptr<::AdHoc::NvpParse::Target>(new ::AdHoc::NvpParse::Target(&c::m)) } /** Parse an input stream into the given object. * @param in The input stream. -- cgit v1.2.3