diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-09 13:06:18 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-09 13:06:18 +0200 |
commit | ac943fcad42ddf12d522d0dc280a60e9b2b2cbb1 (patch) | |
tree | 77a7614aa1cb9db5a81968c3a151af4e0330b49f /odb/option-types.cxx | |
parent | bf0b1014b260f04a3446a4a8ccd3817083777787 (diff) |
Add c++17 mode (--std c++17), also translate to c++NN rather than gnu++NN
Diffstat (limited to 'odb/option-types.cxx')
-rw-r--r-- | odb/option-types.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/odb/option-types.cxx b/odb/option-types.cxx index bd3736e..d2848a4 100644 --- a/odb/option-types.cxx +++ b/odb/option-types.cxx @@ -17,8 +17,9 @@ using namespace std; static const char* cxx_version_[] = { "c++98", - "c++11" - "c++14" + "c++11", + "c++14", + "c++17" }; string cxx_version:: @@ -41,6 +42,8 @@ operator>> (istream& is, cxx_version& v) v = cxx_version::cxx11; else if (s == "c++14") v = cxx_version::cxx14; + else if (s == "c++17") + v = cxx_version::cxx17; else is.setstate (istream::failbit); } |