Dealing with flags.

Some classes have extra settings. You can specify these settings in the class'es constructor. When setting a certain value, there's a very simple pattern:

some_object obj(..., some_object_settings().setting1(value1).setting2(value2)....);

Example:

using namespace destination;
file f("out.txt", file_settings.initial_overwrite(true).do_append(false) );


Copyright John Torjo © 2007
Have a question/ suggestion/ comment? Send me feedback