From fcf64f1fd6f43e10a9ac61c1b88905bcce638561 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Wed, 3 Jun 2020 17:14:35 +0100 Subject: [PATCH] (build) Add missing headers (#124) This is needed to build with Boost 1.73.0, to fix these errors: lib/src/path.cc: In static member function 'static bool hocon::path::has_funky_chars(const string&)': lib/src/path.cc:176:25: error: 'find_if' was not declared in this scope; did you mean 'boost::mpl::find_if'? 176 | auto bad_char = find_if(s.begin(), s.end(), [] (char c) { | ^~~~~~~ lib/src/tokenizer.cc: In member function 'void hocon::token_iterator::pull_escape_sequence(std::string&, std::string&)': lib/src/tokenizer.cc:310:42: error: 'narrow' is not a member of 'boost::nowide' 310 | parsed += boost::nowide::narrow(buffer); | ^~~~~~ --- lib/src/path.cc | 1 + lib/src/tokenizer.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/src/path.cc b/lib/src/path.cc index ab4d2031..55fe6882 100644 --- a/lib/src/path.cc +++ b/lib/src/path.cc @@ -4,6 +4,7 @@ #include #include #include +#include // Mark string for translation (alias for leatherman::locale::format) using leatherman::locale::_; diff --git a/lib/src/tokenizer.cc b/lib/src/tokenizer.cc index d3038909..cd88d287 100644 --- a/lib/src/tokenizer.cc +++ b/lib/src/tokenizer.cc @@ -7,6 +7,7 @@ #include #include #include +#include #include // Mark string for translation (alias for leatherman::locale::format)