aboutsummaryrefslogtreecommitdiff
path: root/oracle/types/test.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'oracle/types/test.hxx')
-rw-r--r--oracle/types/test.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/oracle/types/test.hxx b/oracle/types/test.hxx
index 687f05e..2eaa6e5 100644
--- a/oracle/types/test.hxx
+++ b/oracle/types/test.hxx
@@ -5,6 +5,8 @@
#ifndef TEST_HXX
#define TEST_HXX
+#include <common/config.hxx> // HAVE_CXX11
+
#include <string>
#include <vector>
#include <memory> // std::auto_ptr
@@ -96,7 +98,12 @@ struct time_interval
int nanosecond;
};
+#ifdef HAVE_CXX11
+typedef std::unique_ptr<std::string> string_ptr;
+#else
typedef std::auto_ptr<std::string> string_ptr;
+#endif
+
typedef std::vector<std::string> strings;
#pragma db object