A user in the Community Forum reported an issue with building the C++ driver. I confirmed the failure.
Configuration: RHEL 7, GCC 4.8.5, Boost 1.58 (installed from upstream sources, as RHEL7 ships with Boost 1.53).
Error output:
[ 2%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_shared.dir/document/element.cpp.o cd /root/mongo-cxx-driver-r3.6.2/build/src/bsoncxx && /usr/bin/c++ -DBSONCXX_EXPORT -DMONGO_CXX_DRIVER_COMPILING -I/root/mongo-cxx-driver-r3.6.2/src -I/root/mongo-cxx-driver-r3.6.2/build/src -I/usr/local/include -isystem /usr/local/include/libbson-1.0 -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=c++11 -o CMakeFiles/bsoncxx_shared.dir/document/element.cpp.o -c /root/mongo-cxx-driver-r3.6.2/src/bsoncxx/document/element.cpp In file included from /root/mongo-cxx-driver-r3.6.2/src/bsoncxx/json.hpp:21:0, from /root/mongo-cxx-driver-r3.6.2/src/bsoncxx/document/element.cpp:22: /root/mongo-cxx-driver-r3.6.2/src/bsoncxx/stdx/optional.hpp:52:38: error: too many initializers for 'const nullopt_t {aka const boost::none_t}' const nullopt_t nullopt{::boost::none}; ^ make[2]: *** [src/bsoncxx/CMakeFiles/bsoncxx_shared.dir/document/element.cpp.o] Error 1 make[2]: Leaving directory `/root/mongo-cxx-driver-r3.6.2/build' make[1]: *** [src/bsoncxx/CMakeFiles/bsoncxx_shared.dir/all] Error 2 make[1]: Leaving directory `/root/mongo-cxx-driver-r3.6.2/build' make: *** [all] Error 2