aboutsummaryrefslogtreecommitdiff
path: root/common/query/array/test.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2023-12-13 21:57:53 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-01-23 21:20:44 +0300
commitfc3fb39c90ab7fe5fccbe3f3bc0eb2645157bb96 (patch)
tree6c8c1bfb5fe89f7378b92ac066b4ca8ecfd25228 /common/query/array/test.hxx
parent02367faedb16b6186e8852de47e5b749dc48c2df (diff)
Switch to build2
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_;