Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost Program Options: Any way to have variable number of "objects" each with parameters?
From: Vladimir Prus (ghost_at_[hidden])
Date: 2012-06-22 01:57:36


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 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