From 9bf40e4a91f6a792c3279d9184b67451cf58bf49 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 9 Dec 2015 18:02:40 +0200 Subject: 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). --- cli/options.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cli/options.hxx') 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 +#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_; -- cgit v1.1