using declaration of a function template

  • Thread starter Thread starter PLS
  • Start date Start date
P

PLS

Short example:

namespace A
{
template<class Z>
void f(Z &)
{...
}
}

namespace B
{
using ???
}

I want the function template A::f to be available in namespace B without
qualification when it is used.

What does the using declaration in B look like? I can't find an example
and haven't discovered the version VC2005 will accept.

Thanks,
++PLS
 
Short example:
namespace A
{
template<class Z>
void f(Z &)
{...
}
}
namespace B
{
using ???
}
I want the function template A::f to be available in namespace B
without qualification when it is used.

What does the using declaration in B look like? I can't find an
example and haven't discovered the version VC2005 will accept.

Thanks,
++PLS

put 'using A::f;' in B

Vi
 
Back
Top