Boost logo

Boost Users :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-09-01 09:14:57


Hi Leon,

> Today I upgraded to boost 1.33, which broke the 'program options' part
> of my application. Copying of a
> boost::program_options::options_description is not allowed anymore,
> because of a const unsigned int m_line_length, defined at line 211 of
> <boost/program_options/options_descriptions.hpp> :
....
> I wonder, why is this not allowed anymore (except the obvious answer
> that a const variable cannot be assigned a new value) ? What is the
> "new", preferred way to copy these objects ?

This was not an explicit design decision -- I just did not though anybody
will even want to copy options_description instances.

Why do you do it? I think I can just remove "const".

- 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