Your message dated Sat, 16 Feb 2008 05:02:24 -0600
with message-id <[EMAIL PROTECTED]>
and subject line Re: bug in documetation of program options library (Re: 
[boost]        [1.34] branch for release on Monday)
has caused the Debian Bug report #335613,
regarding libboost-doc: [program_options] wrong example
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
335613: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=335613
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: libboost-doc
Version: 1.33.0-2
Severity: normal

Package: libboost-doc
Version: 1.33.0-2
Severity: normal

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

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686-smp
Locale: LANG=en_US.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)

-- no debconf information


--- End Message ---
--- Begin Message ---
On Mon, Mar 20, 2006 at 12:33:38PM +0100, Domenico Andreoli wrote:
 
> 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'

This appears to have been fixed.  The example in the docs has been
changed to

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

which compiles and links with Boost 1.34.1.

-Steve

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply via email to