diff options
Diffstat (limited to 'hello/person.hxx')
-rw-r--r-- | hello/person.hxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/hello/person.hxx b/hello/person.hxx index 4730ff0..7a939c7 100644 --- a/hello/person.hxx +++ b/hello/person.hxx @@ -10,8 +10,9 @@ #include <odb/core.hxx> #pragma db object -struct person +class person { +public: person (const std::string& first, const std::string& last, unsigned short age) @@ -37,6 +38,12 @@ struct person return age_; } + void + age (unsigned short age) + { + age_ = age; + } + public: unsigned long id () const |