Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2006-10-10 15:24:12


Bugs item #1574751, was opened at 2006-10-10 12:24
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1574751&group_id=7586

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: jas (ei2pi)
Assigned to: Nobody/Anonymous (nobody)
Summary: Function name error in program_options documentation

Initial Comment:
http://boost.org/doc/html/program_options/
howto.html#id2716386

There are two typos in the second (last) code block in
"Allowing Unknown Options".

1. The function name collect_arguments should read
collect_unrecognized.

2. The first parameter refers to parsed_options field
name "option" rather than "options".

So the following block

vector<string> to_pass_further =
collect_arguments(parsed.option, include_positional);

should read as follows

vector<string> to_pass_further =
collect_unrecognized(parsed.options,
include_positional);

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1574751&group_id=7586

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk