Enables C++11 STL random usage on g++

This commit is contained in:
Peter Thorson
2013-03-16 09:02:39 -05:00
parent 8e23bbf5b2
commit f51a650027
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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()() {