diff options
Diffstat (limited to 'common/query/basics')
-rw-r--r-- | common/query/basics/test.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/query/basics/test.hxx b/common/query/basics/test.hxx index 3e61c57..74b5ff5 100644 --- a/common/query/basics/test.hxx +++ b/common/query/basics/test.hxx @@ -5,6 +5,8 @@ #ifndef TEST_HXX #define TEST_HXX +#include <common/config.hxx> // HAVE_CXX11 + #include <string> #include <vector> #include <memory> @@ -55,7 +57,11 @@ struct person std::string first_name_; #pragma db column ("middle") null +#ifdef HAVE_CXX11 + std::unique_ptr<std::string> middle_name_; +#else std::auto_ptr<std::string> middle_name_; +#endif #pragma db column ("last") std::string last_name_; |