diff options
Diffstat (limited to 'common/inheritance/polymorphism/test5.hxx')
-rw-r--r-- | common/inheritance/polymorphism/test5.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/inheritance/polymorphism/test5.hxx b/common/inheritance/polymorphism/test5.hxx index e253f6a..78f909f 100644 --- a/common/inheritance/polymorphism/test5.hxx +++ b/common/inheritance/polymorphism/test5.hxx @@ -5,6 +5,8 @@ #ifndef TEST5_HXX #define TEST5_HXX +#include <common/config.hxx> // HAVE_CXX11 + #include <string> #include <vector> #include <memory> @@ -17,7 +19,11 @@ #pragma db namespace table("t5_") namespace test5 { +#ifdef HAVE_CXX11 + #pragma db object polymorphic optimistic pointer(std::unique_ptr) +#else #pragma db object polymorphic optimistic pointer(std::auto_ptr) +#endif struct root { virtual ~root () {} |