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@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Vladimir Prus Sent: Thursday, June 21, 2012 10:58 PM To: boost-users@lists.boost.org 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
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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users