Problem with GMP and a user defined namespace
Christopher Creutzig
ccr at sciface.com
Mon Jul 20 10:11:32 CEST 2009
Marc Glisse wrote:
> This namespace thing makes the compiled gmpxx inadequate since it is
> defining say operator<< and not GMP::operator<<.
While I agree that putting new namespaces around some unsuspecting code
is a bad idea, this reason should not be one. By the rules of Koenig
lookup, the GMP::operator<< will be found if one of the operands has a
type defined in the GMP namespace.
Christopher
More information about the gmp-discuss
mailing list