aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2012-04-15 21:05:54 -0400
committerLuke Dashjr <luke-jr+git@utopios.org>2012-04-15 21:05:54 -0400
commit79fc752b6104b796aa5e0a8a8b6d2822fb0f3299 (patch)
tree7ae039ced8787d0fe10e1150f3dcf249524c6a4c /src/util.cpp
parentfdcafa35359b3ad9af79d2367a1884d01607fb84 (diff)
parent8460185dec74383b1e49500683cfc7aa9ceba554 (diff)
downloadbitcoin-79fc752b6104b796aa5e0a8a8b6d2822fb0f3299.tar.xz
Merge branch '0.4.x' into 0.5.0.x
Conflicts: src/keystore.h
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index a9111673e7..5b59eadaa2 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>