diff options
| author | Wladimir J. van der Laan <[email protected]> | 2012-04-15 11:42:40 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2012-04-15 13:40:14 +0200 |
| commit | 1f29d399f449af918189f0d8a0302a74286dc6b7 (patch) | |
| tree | f8459a84e62e4efacdd55857929c6e36b02fbe54 /src/util.cpp | |
| parent | enable all warnings except invalid-offsetof, sign-compare, unused-parameter (diff) | |
| download | discoin-1f29d399f449af918189f0d8a0302a74286dc6b7.tar.xz discoin-1f29d399f449af918189f0d8a0302a74286dc6b7.zip | |
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 911388b37..1eda59baf 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -6,6 +6,17 @@ #include "headers.h" #include "strlcpy.h" #include <boost/algorithm/string/join.hpp> + +// 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> |