aboutsummaryrefslogtreecommitdiff
path: root/examples/cxx/hybrid/library/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-10-27 10:10:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-10-27 10:10:46 +0200
commit3dcdc88b14aec626c87f8f480a1d07781a27c069 (patch)
tree3d64d4701e07441545ffaf3afe0050c4c9e35b41 /examples/cxx/hybrid/library/driver.cxx
parent8161144e7f3182d9dc66a811b4618a81232d4af3 (diff)
Implement schema enumeration to C++ enum mapping in C++/Hybrid
Diffstat (limited to 'examples/cxx/hybrid/library/driver.cxx')
-rw-r--r--examples/cxx/hybrid/library/driver.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/cxx/hybrid/library/driver.cxx b/examples/cxx/hybrid/library/driver.cxx
index 5aa406e..41e3e1b 100644
--- a/examples/cxx/hybrid/library/driver.cxx
+++ b/examples/cxx/hybrid/library/driver.cxx
@@ -56,7 +56,7 @@ main (int argc, char* argv[])
{
cerr << "ISBN : " << i->isbn () << endl
<< "Title : " << i->title () << endl
- << "Genre : " << i->genre () << endl;
+ << "Genre : " << i->genre ().string () << endl;
for (book::author_const_iterator j = i->author ().begin ();
j != i->author ().end ();
@@ -108,9 +108,7 @@ main (int argc, char* argv[])
t.assign ("Dead Souls");
b->title (t);
- genre g;
- g.assign ("philosophy");
- b->genre (g);
+ b->genre (genre::philosophy);
author a;
a.name ("Nikolai Gogol");