aboutsummaryrefslogtreecommitdiff
path: root/boost/common/optional/test.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'boost/common/optional/test.hxx')
-rw-r--r--boost/common/optional/test.hxx33
1 files changed, 33 insertions, 0 deletions
diff --git a/boost/common/optional/test.hxx b/boost/common/optional/test.hxx
new file mode 100644
index 0000000..519ed94
--- /dev/null
+++ b/boost/common/optional/test.hxx
@@ -0,0 +1,33 @@
+// file : boost/common/optional/test.hxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifndef TEST_HXX
+#define TEST_HXX
+
+#include <string>
+
+#include <boost/optional.hpp>
+
+#include <odb/core.hxx>
+
+#pragma db object
+struct object
+{
+ object (unsigned long id)
+ : id_ (id)
+ {
+ }
+
+ object ()
+ {
+ }
+
+ #pragma db id
+ unsigned long id_;
+
+ boost::optional<std::string> str;
+};
+
+#endif // TEST_HXX