From 14392d7ca625facaf509b354f19ece627b81a4b0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 4 Aug 2011 13:29:43 +0200 Subject: 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. --- odb/odb.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'odb/odb.cxx') 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 " << endl << "#endif" << endl; + // Standard wrapper traits. + // + os << "#include " << endl + << "#include " << endl; + // Standard pointer traits. // os << "#include " << endl -- cgit v1.1