Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost Program Options: Any way to have variable number of "objects" each with parameters?
From: Charles Mills (charlesm_at_[hidden])
Date: 2012-06-22 09:49:48


Vladimir, first off, thank you for the PO library. A *great* productivity
aid.

> define operator>> for the class

I hear you, but I'm rolling now on the rectangle.height approach.

I'm a very experienced programmer, but my C++ experience is only about three
years now, and taking on templated operator overrides would be a little bit
of a project of its own.

Charles
-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Vladimir Prus
Sent: Thursday, June 21, 2012 10:58 PM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] Boost Program Options: Any way to have variable
number of "objects" each with parameters?

On 22.06.2012 04:47, Diederick C. Niehorster wrote:
> Hi Charles,
>
> On Fri, Jun 22, 2012 at 1:33 AM, Charles Mills<charlesm_at_[hidden]> wrote:
>> rectangle={width=5 height=10}
>> rectangle={width=3 height=8}
>> circle={diameter=3}
>
> Thats not going to be straightforward indeed, I guess what you
> presented in the other email is the best way without much extra work.

I would imagine this to be not hard. Either define operator>> for the class
you use to represent rectangles,
over override 'validate'?

- Volodya

_______________________________________________
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