From f13238b40cbf74dafb357df2bbac35d381917216 Mon Sep 17 00:00:00 2001 From: "Alexey N. Vinogradov" Date: Sat, 9 Mar 2019 11:01:33 +0700 Subject: [PATCH] Fix build galera with std::shared_ptr 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). --- galera/src/wsdb.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/galera/src/wsdb.cpp b/galera/src/wsdb.cpp index c5d5102fd..aafef5e80 100644 --- a/galera/src/wsdb.cpp +++ b/galera/src/wsdb.cpp @@ -9,6 +9,7 @@ #include "gu_lock.hpp" #include "gu_throw.hpp" +#include // std::for_each void galera::Wsdb::print(std::ostream& os) const {