aboutsummaryrefslogtreecommitdiff
path: root/odb/option-types.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-02-23 10:47:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-02-23 10:47:16 +0200
commitbb811b27cffbeb4c24d9d3f2e739f99eab8299ec (patch)
tree28aec7f2dd521cca2ed34ddacf344cf0aa89c474 /odb/option-types.hxx
parent3a1eed21d4d5d0e7f6a9f400420fdc28d7be9b61 (diff)
Add --std option that allows selecting between C++98 and C++11
Diffstat (limited to 'odb/option-types.hxx')
-rw-r--r--odb/option-types.hxx23
1 files changed, 23 insertions, 0 deletions
diff --git a/odb/option-types.hxx b/odb/option-types.hxx
index 7da346f..de3bdb7 100644
--- a/odb/option-types.hxx
+++ b/odb/option-types.hxx
@@ -11,6 +11,29 @@
using semantics::relational::qname;
+struct cxx_version
+{
+ enum value
+ {
+ cxx98,
+ cxx11
+ };
+
+ cxx_version (value v = value (0)) : v_ (v) {}
+ operator value () const {return v_;}
+
+ const char*
+ string () const;
+
+private:
+ value v_;
+};
+
+std::istream&
+operator>> (std::istream&, cxx_version&);
+
+//
+//
struct database
{
enum value