datastax/cpp-driver — pull request #22 by jnidzwetzki (2014-03-20 07:18:45+00:00)
Title: Changed nullptr to NULL

Pull request 21 introduced the new C++11 keyword 'nullptr'. Building the project now fails on debian 7 with gcc 4.7.2.

Older commits, like 'a78dfba00484f1f534cb70bffd0652456ae49660', are removing all C++11 code and the compiler option '-std=c++0x'. So I changed all occurrences of nullptr to NULL.

```
[ 7%] Building CXX object CMakeFiles/cql.dir/src/cql/cql_builder.cpp.o
/usr/bin/c++ -Dcql_EXPORTS -DBOOST_ALL_DYN_LINK -DBOOST_ALL_NO_LIB -fPIC -I/home/kristof/api/cpp-driver/include -fPIC -Wall -pedantic -Wno-long-long -fno-strict-aliasing -o CMakeFiles/cql.dir/src/cql/cql_builder.cpp.o -c /home/kristof/api/cpp-driver/src/cql/cql_builder.cpp
/home/kristof/api/cpp-driver/src/cql/cql_builder.cpp:116:2: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat]
/home/kristof/api/cpp-driver/src/cql/cql_builder.cpp: In member function 'cql::cql_builder_t& cql::cql_builder_t::with_load_balancing_policy(boost::shared_ptr)':
/home/kristof/api/cpp-driver/src/cql/cql_builder.cpp:116:31: error: 'nullptr' was not declared in this scope
/home/kristof/api/cpp-driver/src/cql/cql_builder.cpp: In member function 'cql::cql_builder_t& cql::cql_builder_t::with_reconnection_policy(boost::shared_ptr)':
/home/kristof/api/cpp-driver/src/cql/cql_builder.cpp:131:29: error: 'nullptr' was not declared in this scope
/home/kristof/api/cpp-driver/src/cql/cql_builder.cpp: In member function 'cql::cql_builder_t& cql::cql_builder_t::with_retry_policy(boost::shared_ptr)':
/home/kristof/api/cpp-driver/src/cql/cql_builder.cpp:144:22: error: 'nullptr' was not declared in this scope
make[3]: *** [CMakeFiles/cql.dir/src/cql/cql_builder.cpp.o] Fehler 1
make[3]: Leaving directory `/home/kristof/api/cpp-driver'
make[2]: *** [CMakeFiles/cql.dir/all] Fehler 2
make[2]: Leaving directory `/home/kristof/api/cpp-driver'
make[1]: *** [all] Fehler 2
make[1]: Leaving directory `/home/kristof/api/cpp-driver'
make: *** [build-stamp] Fehler 2
```