From bb811b27cffbeb4c24d9d3f2e739f99eab8299ec Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 23 Feb 2012 10:47:16 +0200 Subject: Add --std option that allows selecting between C++98 and C++11 --- odb/option-types.hxx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'odb/option-types.hxx') 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 -- cgit v1.1