diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-09 18:02:40 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-09 18:02:40 +0200 |
commit | 9bf40e4a91f6a792c3279d9184b67451cf58bf49 (patch) | |
tree | a242a923ec7d309dc488c60f1233fbc91fcbae70 /cli/options.hxx | |
parent | bd21176187a55fa7f6e80b5cfe86f5e756971b4f (diff) |
Add --std option with c++{98,11,14} values; use function-static in C++11
This way we can use option descriptions during static initialization (e.g.,
of an Apache module).
Diffstat (limited to 'cli/options.hxx')
-rw-r--r-- | cli/options.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/options.hxx b/cli/options.hxx index 268e0fd..6171cc0 100644 --- a/cli/options.hxx +++ b/cli/options.hxx @@ -352,6 +352,8 @@ namespace cli #include <cstddef> +#include "option-types.hxx" + class options { public: @@ -409,6 +411,12 @@ class options bool output_dir_specified () const; + const cxx_version& + std () const; + + bool + std_specified () const; + const bool& generate_modifier () const; @@ -716,6 +724,8 @@ class options bool include_path_specified_; std::string output_dir_; bool output_dir_specified_; + cxx_version std_; + bool std_specified_; bool generate_modifier_; bool generate_specifier_; bool generate_parse_; |