galera icon indicating copy to clipboard operation
galera copied to clipboard

Fix build galera with std::shared_ptr

Open klirichek opened this issue 5 years ago • 0 comments

Default scons configuration provides '-ansi' flag to g++ compiler, which actually means '-std=c++98'. So, later tests for c++11 features always fails and build finaly is always based on TR1/Boost implementations.

Rewriting this flag to '-std=c++11' effectively invokes std library instead, but galera then fails to build because of using for_each without explicitly included (it seems that boost shared_ptr replacement uses it for own purposes, and pollutes global scope).

klirichek avatar Mar 09 '19 04:03 klirichek