aboutsummaryrefslogtreecommitdiff
path: root/common/blob/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-09-11 13:55:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-09-11 13:55:48 +0200
commitd87a78e24d5988cfa3556707b7beffd1b0c15901 (patch)
tree32115e06a1bdade66efea1e304ba5863feaa5a21 /common/blob/driver.cxx
parent32fcd732e2535090174142dd15b8b74fc444a9c2 (diff)
Add support for mapping std::array to BLOB and char[16] to UUID types
Diffstat (limited to 'common/blob/driver.cxx')
-rw-r--r--common/blob/driver.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/blob/driver.cxx b/common/blob/driver.cxx
index b280771..ec507ce 100644
--- a/common/blob/driver.cxx
+++ b/common/blob/driver.cxx
@@ -5,6 +5,8 @@
// Test BLOB mapping.
//
+#include <common/config.hxx> // HAVE_CXX11
+
#include <memory> // std::auto_ptr
#include <cassert>
#include <iostream>
@@ -47,6 +49,10 @@ main (int argc, char* argv[])
o.vuc.assign (udata, udata + sizeof (data));
memcpy (o.c, data, sizeof (data));
memcpy (o.uc, udata, sizeof (data));
+#ifdef HAVE_CXX11
+ memcpy (o.a.data (), data, sizeof (data));
+ memcpy (o.ua.data (), udata, sizeof (data));
+#endif
o.cont.push_back (1);
o.cont.push_back (2);
o.cont.push_back (3);