Enable std::array overloads for boost::asio on clang:

* Remove Boost config option from beast config.
* Define from compiler, or let Boost figure out itself.
This commit is contained in:
Edward Hennis
2014-10-30 12:36:13 -04:00
committed by Vinnie Falco
parent edc15b9fa2
commit d7116d6867
2 changed files with 1 additions and 3 deletions

View File

@@ -265,6 +265,7 @@ def config_env(toolchain, variant, env):
if toolchain == 'clang':
env.Append(CCFLAGS=['-Wno-redeclared-class-member'])
env.Append(CPPDEFINES=['BOOST_ASIO_HAS_STD_ARRAY'])
env.Append(CXXFLAGS=[
'-frtti',

View File

@@ -26,9 +26,6 @@
// VFALCO NOTE this is analogous to <boost/config.hpp>
// Assert to boost that we always have std::array support
#define BOOST_ASIO_HAS_STD_ARRAY 1
#if !defined(BEAST_COMPILER_CONFIG) && !defined(BEAST_NO_COMPILER_CONFIG) && !defined(BEAST_NO_CONFIG)
#include <beast/config/SelectCompilerConfig.h>
#endif