mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
Enables C++11 STL random usage on g++
This commit is contained in:
@@ -124,7 +124,7 @@ if env_cpp11['CXX'].startswith('g++'):
|
||||
|
||||
if GCC_VERSION > "4.4.0":
|
||||
print "C++11 build environment partially enabled"
|
||||
env_cpp11.Append(WSPP_CPP11_ENABLED = "true",CXXFLAGS = ['-std=c++0x'],TOOLSET = ['g++'],CPPDEFINES = ['_WEBSOCKETPP_CPP11_MEMORY_','_WEBSOCKETPP_CPP11_FUNCTIONAL_','_WEBSOCKETPP_CPP11_SYSTEM_ERROR_','_WEBSOCKETPP_NOEXCEPT_'])
|
||||
env_cpp11.Append(WSPP_CPP11_ENABLED = "true",CXXFLAGS = ['-std=c++0x'],TOOLSET = ['g++'],CPPDEFINES = ['_WEBSOCKETPP_CPP11_MEMORY_','_WEBSOCKETPP_CPP11_FUNCTIONAL_','_WEBSOCKETPP_CPP11_SYSTEM_ERROR_','_WEBSOCKETPP_CPP11_RANDOM_DEVICE_','_WEBSOCKETPP_NOEXCEPT_'])
|
||||
# libstdc++ does not yet support <regex>
|
||||
# boost regex is a drop in replacement
|
||||
polyfill_libs += boostlibs(['regex'],env_cpp11)
|
||||
|
||||
@@ -56,7 +56,7 @@ class int_generator {
|
||||
|
||||
/// constructor
|
||||
//mac TODO: figure out if signed types present a range problem
|
||||
int_generator() : m_dis() {}
|
||||
int_generator() {}
|
||||
|
||||
/// advances the engine's state and returns the generated value
|
||||
int_type operator()() {
|
||||
|
||||
Reference in New Issue
Block a user