From 3dcdc88b14aec626c87f8f480a1d07781a27c069 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 27 Oct 2009 10:10:46 +0200 Subject: Implement schema enumeration to C++ enum mapping in C++/Hybrid --- examples/cxx/hybrid/library/driver.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'examples/cxx/hybrid/library/driver.cxx') 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"); -- cgit v1.1