|
Boost Users : |
From: Christian Henning (chhenning_at_[hidden])
Date: 2007-03-07 10:50:09
Hi there, change the template parameter to the real type.
program_options::value<&_option1>() ----->>>
program_options::value<unsigned int>()
That's it,
Christian
On 3/7/07, Aljaz <aljaz.fajmut_at_[hidden]> wrote:
> What am I doing wrong?
> I get error 'boost::program_options::typed_value<T>
> *boost::program_options::value(T *)' : expects 1 arguments - 0 provided
>
> class options {
> public:
> unsigned int _option1;
> int _option2;
>
> void parse_options() {
> boost::program_options::options_description config;
> config.add_options()
> ("set1",
> boost::program_options::value<&_option1>()->default_value(200), "seting 1")
> ("set2",
> boost::program_options::value<&_option2>()->default_value(300), "seting 2");
> }
> };
>
>
>
> Thanks for help
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net