/// Hypothetical interface, taking both v6 and v7 objects
namespace ROOT {
template <...>
class TSomething {
public:
void Write(::TDirectory&);
void Write(TDirectory&);
};
}
using namespace ROOT;
ROOT::TDirectory<...> d; // BOOM!
TSomething().Write(d);