Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build galera with std::shared_ptr #158

Open
wants to merge 1 commit into
base: 3.x-5.7
Choose a base branch
from

Conversation

klirichek
Copy link

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

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 <algorithm> (it seems that boost shared_ptr
replacement uses it for own purposes, and pollutes global scope).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant