aboutsummaryrefslogtreecommitdiff
path: root/boost/README
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
commitb2fcd4dcdeb0f4962f8c8a1ce1a6fd64c2014062 (patch)
tree2cb2e003bc5865e0f36df9a3c1ddbc0991b1f154 /boost/README
parentf2955b7052e571eb4af0ad8194970f29e4b4ff9b (diff)
Add support for boost::optional and boost::shared_ptr as value wrappers
New test: boost/common/optional.
Diffstat (limited to 'boost/README')
-rw-r--r--boost/README12
1 files changed, 7 insertions, 5 deletions
diff --git a/boost/README b/boost/README
index 021d601..5a95ac8 100644
--- a/boost/README
+++ b/boost/README
@@ -9,9 +9,11 @@ employee.hxx
We use shared_ptr/weak_ptr smart pointers provided by Boost (as well
as their lazy versions provided by the Boost profile library) to
establish a bidirectional employee-employer relationship. We also use
- the boost::gregorian::date type to store the employee's date of birth.
- Finally, we use the boost::unordered_set container to keep track of
- the employee's email addresses.
+ the boost::gregorian::date type to store the employee's date of birth
+ and the boost::unordered_set container to keep track of the employee's
+ email addresses Finally, we use boost::optional for the optional middle
+ name. If the middle name is not present, it will be represented in the
+ database as a NULL value.
employee-odb.hxx
employee-odb.ixx
@@ -45,8 +47,8 @@ driver.cxx
instance. It then creates a number of 'employee' and 'employer' objects and
persists them in the database. The next transaction loads all the employees
of a particular employer using the employee-employer relationship. Finally,
- the driver performs a database query which uses a data member of the Boost
- gregorian::date type in its criterion.
+ the driver performs a few database queries which use data members of the
+ various Boost value types in their criterion.
To run the example we may first need to create the database schema (for some
database systems, such as SQLite, the schema is embedded into the generated