Boost logo

Boost :

From: (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:

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

        template <class T> void remove_unrecognized(T &op)


You can respond by visiting:

Take Surveys. Earn Cash. Influence the Future of IT
Join's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
Boost-bugs mailing list

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