aboutsummaryrefslogtreecommitdiff
path: root/src/test/reverselock_tests.cpp
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2016-01-05 15:58:48 -0500
committerCory Fields <cory-nospam-@coryfields.com>2016-01-05 17:17:29 -0500
commit76ac35f36d87078da62f95b4a1167ec296e37363 (patch)
tree823c769c50135b102f4e9790d418c1976b628962 /src/test/reverselock_tests.cpp
parent605c17844ea32b6d237db6d83871164dc7d59dab (diff)
downloadbitcoin-76ac35f36d87078da62f95b4a1167ec296e37363.tar.xz
c++11: detect and correct for boost builds with an incompatible abi
This is ugly, but temporary. boost::filesystem will likely be dropped soon after c++11 is enabled. Otherwise, we could simply roll our own copy_file. I've fixed this at the buildsystem level for now in order to avoid mixing in functional changes. Explanation: If boost (prior to 1.57) was built without c++11, it emulated scoped enums using c++98 constructs. Unfortunately, this implementation detail leaked into the abi. This was fixed in 1.57. When building against that installed version using c++11, the headers pick up on the native c++11 scoped enum support and enable it, however it will fail to link. This can be worked around by disabling c++11 scoped enums if linking will fail. Add an autoconf test to determine incompatibility. At build-time, if native enums are being used (a c++11 build), and force-disabling them causes a successful link, we can be sure that there's an incompatibility and enable the work-around.
Diffstat (limited to 'src/test/reverselock_tests.cpp')
0 files changed, 0 insertions, 0 deletions