Boost logo

Boost :

From: Domenico Andreoli (cavok_at_[hidden])
Date: 2006-03-20 06:33:38

On Sat, Mar 18, 2006 at 10:52:32PM -0800, Thomas Witt wrote:
> Hi,


> I am going to create the release branch on Monday March 20 around 6pm
> PST. Please resolve as many outstanding issues as possible before the
> branch is done.

i have a bug reported against boost debian package.

It is from LI Daobing <lidaobing_at_[hidden]>:

  "In [1], Section `Positional Options', the last example [2] doesn't work.
  positional_options_description::add return void, and it has no
  add_optional method;


  positional_options_description pd;
  pd.add("output-file", 2).add_optional("input-file", -1);"

for the full report, please visit

indeed a simple program like:

#include <boost/program_options.hpp>
namespace po = boost::program_options;

int main(int ac, char* av[])
    po::positional_options_description pd;
    pd.add("output-file", 2).add_optional("input-file", -1);

    return 0;

fails to build with the following gcc error message:

test.cpp: In function 'int main(int, char**)':
test.cpp:7: error: invalid use of 'void'


-----[ Domenico Andreoli, aka cavok
   ---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50

Boost list run by bdawes at, gregod at, cpdaniel at, john at