From: Wladimir J. van der Laan Date: Sun, 15 Apr 2012 09:42:40 +0000 (+0200) Subject: work around issue in boost::program_options that prevents from compiling in clang X-Git-Tag: v0.4.0-unstable~129^2~1^2^2~2^2^2~32 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=401db6d96b34bbfa8942af1090ce29cafcf79859 work around issue in boost::program_options that prevents from compiling in clang --- diff --git a/src/util.cpp b/src/util.cpp index 0f496bc..c3290f4 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 #include #include