From 1f83704a70b9c4065a5eb9f65e94919415d238ae Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 30 Jun 2022 14:25:16 +0300 Subject: Add support for using bool with std::vector, std::set, and std::map --- cli-examples/features/driver.cxx | 2 +- cli-examples/features/options.cli | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'cli-examples/features') diff --git a/cli-examples/features/driver.cxx b/cli-examples/features/driver.cxx index c14b5c7..a6299b9 100644 --- a/cli-examples/features/driver.cxx +++ b/cli-examples/features/driver.cxx @@ -45,7 +45,7 @@ main (int argc, char* argv[]) // --map | -m // - typedef map str_map; + typedef map str_map; const str_map& m = o.map (); str_map::const_iterator i (m.find ("a")); diff --git a/cli-examples/features/options.cli b/cli-examples/features/options.cli index ea055b3..4065830 100644 --- a/cli-examples/features/options.cli +++ b/cli-examples/features/options.cli @@ -31,9 +31,9 @@ namespace features std::set --set | -s; // We can also use maps. In this case the option value is expected to have - // two parts: the key and the value, separated by '='. For example: -m a=A - // -m =B -m c= -m d (same as -m d=). + // two parts: the key and the value, separated by '='. For example: -m a=1 + // -m =true -m c= -m d (same as -m d=). // - std::map --map | -m; + std::map --map | -m; }; } -- cgit v1.1