diff options
Diffstat (limited to 'mssql')
-rw-r--r-- | mssql/types/test.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mssql/types/test.hxx b/mssql/types/test.hxx index aea64cb..0519567 100644 --- a/mssql/types/test.hxx +++ b/mssql/types/test.hxx @@ -20,6 +20,8 @@ typedef struct _GUID } GUID; #endif +#include <common/config.hxx> // HAVE_CXX11 + #include <string> #include <vector> #include <memory> // std::auto_ptr @@ -321,7 +323,11 @@ struct long_null unsigned int id_; #pragma db type ("VARCHAR(max)") null +#ifdef HAVE_CXX11 + std::unique_ptr<std::string> str_; +#else std::auto_ptr<std::string> str_; +#endif bool operator== (const long_null& y) const |