diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2012-04-15 11:42:40 +0200 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2012-04-15 19:23:01 -0400 |
commit | 401db6d96b34bbfa8942af1090ce29cafcf79859 (patch) | |
tree | cabe7338b44e453550461730e153d240885d96e8 /src/util.cpp | |
parent | e88b6b341d75536f2743ce735c338c9fe93ba272 (diff) | |
download | bitcoin-401db6d96b34bbfa8942af1090ce29cafcf79859.tar.xz |
work around issue in boost::program_options that prevents from compiling in clang
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp index 0f496bc455..c3290f4176 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -4,6 +4,17 @@ // file license.txt or http://www.opensource.org/licenses/mit-license.php. #include "headers.h" #include "strlcpy.h" + +// Work around clang compilation problem in Boost 1.46: +// /usr/include/boost/program_options/detail/config_file.hpp:163:17: error: call to function 'to_internal' that is neither visible in the template definition nor found by argument-dependent lookup +// See also: http://stackoverflow.com/questions/10020179/compilation-fail-in-boost-librairies-program-options +// http://clang.debian.net/status.php?version=3.0&key=CANNOT_FIND_FUNCTION +namespace boost { + namespace program_options { + std::string to_internal(const std::string&); + } +} + #include <boost/program_options/detail/config_file.hpp> #include <boost/program_options/parsers.hpp> #include <boost/filesystem.hpp> |