Boost logo

Boost Users :

From: Pedro Lamarão (pedro.lamarao_at_[hidden])
Date: 2006-09-21 17:14:30


Peng Yu escreveu:
> Hi,
>
> Suppose that I have program option set U. I have many programs which
> uses a subset of U as their options.
>
> Some of them share the same subset. For now, I code all the options in
> the main function like the one in the tutorial
> http://www.boost.org/doc/html/program_options/tutorial.html
>
> However, there is a problem when I have a lot programs with similar
> options. I would like to factor out the common code. But I don't have
> an idea how to do it in a good way.

I think the "Multiple Sources" section of the tutorial describes what
you want.

--
  Pedro Lamarão

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net