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

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 <[EMAIL PROTECTED]>:

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

  [1]
  http://127.0.0.1/doc/libboost-doc/HTML/doc/html/program_options/overview.html

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

for the full report, please visit 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=335613.

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'

cheers
domenico

-----[ Domenico Andreoli, aka cavok
 --[ http://people.debian.org/~cavok/gpgkey.asc
   ---[ 3A0F 2F80 F79C 678A 8936  4FEE 0677 9033 A20E BC50


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to