$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] [program_option] how to say only certain strings are allowed as arguments?
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2010-03-04 15:49:59
Hi,
Is there some way to say
bpo::options_description desc("Allowed options");
desc.add_options()
("method",
bpo::value<std::string>()->allowed_values("foo")("bar"), "" )
so I donøt have to reject the arguments manually?
Thanks
-Thorsten