Most commonly, 0.A.B-DRX and 0.A.B-DRY are compatible, but 0.A.B and 0.A.C clients are never compatible.
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
|