As part of issue588, we want to introduce a namespace "options". This will
require some changes in the way we currently do our forward declarations.
We could do
A)
namespace options {
class Options;
}
using options::Options;
// ...
SomeClass(const Options &opts);
B)
namespace options {
class Options;
}
// ...
SomeClass(const options::Options &opts);
C)
#include "options_fwd" // contains forward declaration and using statement
// ...
SomeClass(const Options &opts);
In the cc files everything will stay the same if we add "using
options::Options;" to the "interface header" options.h (and similar statements
for OptionParser, Plugin, Synergy).
Any preferences?
|