summaryrefslogtreecommitdiff
path: root/common/blob/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/blob/test.hxx
parent02367faedb16b6186e8852de47e5b749dc48c2df (diff)
Switch to build2
Diffstat (limited to 'common/blob/test.hxx')
-rw-r--r--common/blob/test.hxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/common/blob/test.hxx b/common/blob/test.hxx
index 13f1815..9602ca2 100644
--- a/common/blob/test.hxx
+++ b/common/blob/test.hxx
@@ -4,15 +4,10 @@
#ifndef TEST_HXX
#define TEST_HXX
-#include <common/config.hxx> // HAVE_CXX11
-
+#include <array>
#include <vector>
#include <cstring> // std::memcmp
-#ifdef HAVE_CXX11
-# include <array>
-#endif
-
#include <odb/core.hxx>
#ifdef ODB_COMPILER
@@ -48,13 +43,11 @@ struct object
#pragma db type(BLOB_TYPE)
unsigned char uc[1024];
-#ifdef HAVE_CXX11
#pragma db type(BLOB_TYPE)
std::array<char, 1024> a;
#pragma db type(BLOB_TYPE)
std::array<char, 1024> ua;
-#endif
// Make sure we can still use std::vector<char> and std::array<char>
// as containers.
@@ -70,10 +63,8 @@ operator== (const object& x, const object& y)
&& x.vuc == y.vuc
&& std::memcmp (x.c, y.c, sizeof (x.c)) == 0
&& std::memcmp (x.uc, y.uc, sizeof (x.uc)) == 0
-#ifdef HAVE_CXX11
&& x.a == y.a
&& x.ua == y.ua
-#endif
&& x.cont == y.cont;
}