Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
(build) Add missing headers (#124)
Browse files Browse the repository at this point in the history
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);
      |                                          ^~~~~~
  • Loading branch information
jwakely authored Jun 3, 2020
1 parent 211075a commit fcf64f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/path.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <internal/config_util.hpp>
#include <internal/path_parser.hpp>
#include <leatherman/locale/locale.hpp>
#include <algorithm>

// Mark string for translation (alias for leatherman::locale::format)
using leatherman::locale::_;
Expand Down
1 change: 1 addition & 0 deletions lib/src/tokenizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <internal/values/config_string.hpp>
#include <boost/nowide/fstream.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/nowide/convert.hpp>
#include <leatherman/locale/locale.hpp>

// Mark string for translation (alias for leatherman::locale::format)
Expand Down

0 comments on commit fcf64f1

Please sign in to comment.