aboutsummaryrefslogtreecommitdiff
path: root/boost/common/optional/test.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-08-04 13:32:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-08-04 13:32:25 +0200
commit0b641f182c0b89b0c903f8756aa14b6b3a2f60f2 (patch)
tree83ec50fe5702f58345efea3cb5c6d7a0abdf84a2 /boost/common/optional/test.hxx
parent18ef14486e46064f4317ab407c5fe0afa3209d4b (diff)
Add support for boost::optional and boost::shared_ptr as value wrappers
New test: boost/common/optional.
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