diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-08-04 13:29:43 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-08-04 13:29:43 +0200 |
commit | 14392d7ca625facaf509b354f19ece627b81a4b0 (patch) | |
tree | e422c02227501f2e7e29a20f69dcac4b8d82ba40 /odb/odb.cxx | |
parent | c7a98034ccc3425090dddade05fd09d54d1f940f (diff) |
Add support for value wrappers
Wrapper is a class that wraps another type. Examples of wrappers are
various smart pointers, holders, etc. A wrapper can be transparent or
it can handle the NULL semantics.
The new odb::nullable class template is a NULL wrapper that helps
to add the NULL semantics to a value type.
New test: common/wrapper.
Diffstat (limited to 'odb/odb.cxx')
-rw-r--r-- | odb/odb.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/odb/odb.cxx b/odb/odb.cxx index 2a14eb9..a4376b5 100644 --- a/odb/odb.cxx +++ b/odb/odb.cxx @@ -746,6 +746,11 @@ main (int argc, char* argv[]) << "# include <tr1/memory>" << endl << "#endif" << endl; + // Standard wrapper traits. + // + os << "#include <odb/wrapper-traits.hxx>" << endl + << "#include <odb/tr1/wrapper-traits.hxx>" << endl; + // Standard pointer traits. // os << "#include <odb/pointer-traits.hxx>" << endl |