- For options that do not require arguments (like help, daemon and version),
it must be passed an untyped_value object
using namespace std;
using boost::program_options::option_description;
using boost::program_options::option_description;
+using boost::program_options::untyped_value;
using boost::program_options::value_semantic;
using boost::shared_ptr;
const char *command_string,
const char *command_description
) :
- option( command_string, NULL, command_description )
+ option( command_string, new untyped_value(true), command_description )
{
}