diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-04-08 14:51:57 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-04-27 11:38:53 +0300 |
commit | 720c5a33b6a49cf328fdd7611f49153cf8f60247 (patch) | |
tree | 9725f3d1f42ec90fde84520f49647edea013ce5e /cli/option-types.cxx | |
parent | 3183f3bb927a90783ae0aeaf190a0919377aabe4 (diff) |
Separate tests and examples into individual packages
Also make cli module to be explicitly enabled via the config.cli configuration
variable.
Diffstat (limited to 'cli/option-types.cxx')
-rw-r--r-- | cli/option-types.cxx | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/cli/option-types.cxx b/cli/option-types.cxx deleted file mode 100644 index da1f434..0000000 --- a/cli/option-types.cxx +++ /dev/null @@ -1,43 +0,0 @@ -// file : cli/option-types.cxx -// author : Boris Kolpackov <boris@codesynthesis.com> -// license : MIT; see accompanying LICENSE file - -#include <istream> - -#include <cli/option-types.hxx> - -using namespace std; - -static const char* cxx_version_[] = -{ - "c++98", - "c++11" - "c++14" -}; - -string cxx_version:: -string () const -{ - return cxx_version_[v_]; -} - -istream& -operator>> (istream& is, cxx_version& v) -{ - string s; - is >> s; - - if (!is.fail ()) - { - if (s == "c++98") - v = cxx_version::cxx98; - else if (s == "c++11") - v = cxx_version::cxx11; - else if (s == "c++14") - v = cxx_version::cxx14; - else - is.setstate (istream::failbit); - } - - return is; -} |