aboutsummaryrefslogtreecommitdiff
path: root/common/query/array/test.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/query/array/test.hxx')
-rw-r--r--common/query/array/test.hxx12
1 files changed, 1 insertions, 11 deletions
diff --git a/common/query/array/test.hxx b/common/query/array/test.hxx
index d280f02..f0d5f3b 100644
--- a/common/query/array/test.hxx
+++ b/common/query/array/test.hxx
@@ -4,14 +4,9 @@
#ifndef TEST_HXX
#define TEST_HXX
-#include <common/config.hxx> // HAVE_CXX11
-
+#include <array>
#include <cstring> // std::memcpy, std::strlen
-#ifdef HAVE_CXX11
-# include <array>
-#endif
-
#include <odb/core.hxx>
#pragma db object
@@ -23,10 +18,7 @@ struct object
{
std::memcpy (s_, s, std::strlen (s) + 1); // VC++ strncpy deprecation.
std::memcpy (s1_, s, std::strlen (s) + 1);
-
-#ifdef HAVE_CXX11
std::memcpy (a_.data (), s, std::strlen (s) + 1);
-#endif
c_ = c1_ = *s;
std::memcpy (b_, b, sizeof (b_));
}
@@ -37,7 +29,6 @@ struct object
char s_[17];
char s1_[17];
-#ifdef HAVE_CXX11
#ifdef ODB_COMPILER
# if defined(ODB_DATABASE_MYSQL) || \
defined(ODB_DATABASE_PGSQL) || \
@@ -53,7 +44,6 @@ struct object
# endif
#endif
std::array<char, 17> a_;
-#endif
char c_;
char c1_;