|
Boost : |
From: SourceForge.net (noreply_at_[hidden])
Date: 2007-01-30 08:11:28
Feature Requests item #1647866, was opened at 2007-01-30 16:11
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=357586&aid=1647866&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: functional
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Alexey Kuznetsov (axet)
Assigned to: Mark Rodgers (mark_rodgers)
Summary: allow_unregistered improvement
Initial Comment:
po::variables_map vm;
po::parsed_options parsed = po::command_line_parser(argc, argv).options(cmdline_options).allow_unregistered().run();
po::remove_unrecognized(parsed);
po::store(parsed, vm);
namespace boost
{
namespace program_options
{
template <class T> bool is_unrecognized ( T &value ) {
return value.unregistered;
}
template <class T> void remove_unrecognized_options(T &op)
{
T::iterator end=std::remove_if(op.begin(),op.end(),is_unrecognized<T::value_type>);
op.erase(end,op.end());
}
template <class T> void remove_unrecognized(T &op)
{
remove_unrecognized_options(op.options);
}
}
}
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=357586&aid=1647866&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