summaryrefslogtreecommitdiff
path: root/odb/option-types.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/option-types.cxx')
-rw-r--r--odb/option-types.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/odb/option-types.cxx b/odb/option-types.cxx
index 870fb1d..d1cccb4 100644
--- a/odb/option-types.cxx
+++ b/odb/option-types.cxx
@@ -120,10 +120,7 @@ operator>> (istream& is, oracle_version& v)
is >> minor;
if (!is.fail ())
- {
- v.major_ = major;
- v.minor_ = minor;
- }
+ v = oracle_version (major, minor);
}
else
is.setstate (istream::failbit);
@@ -135,5 +132,5 @@ operator>> (istream& is, oracle_version& v)
ostream&
operator<< (ostream& os, oracle_version v)
{
- return os << v.major_ << '.' << v.minor_;
+ return os << v.ver_major () << '.' << v.ver_minor ();
}