diff options
Diffstat (limited to 'evolution')
-rw-r--r-- | evolution/soft-delete/model.hxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/evolution/soft-delete/model.hxx b/evolution/soft-delete/model.hxx index 825f969..99bc664 100644 --- a/evolution/soft-delete/model.hxx +++ b/evolution/soft-delete/model.hxx @@ -6,8 +6,10 @@ # error model.hxx included directly #endif +#include <common/config.hxx> // HAVE_CXX11 + #include <string> -#include <memory> // std::auto_ptr +#include <memory> // std::auto_ptr/unique_ptr #include <odb/core.hxx> #include <odb/vector.hxx> @@ -448,7 +450,11 @@ namespace MODEL_NAMESPACE(MODEL_VERSION) #pragma db id unsigned long id_; +#ifdef HAVE_CXX11 + std::unique_ptr<value> v; +#else std::auto_ptr<value> v; +#endif unsigned long num; }; |