You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
namespace Lib {
|
|
inline namespace Lib_1 {
|
|
template <typename T>
|
|
class A;
|
|
}
|
|
|
|
template <typename T>
|
|
void g(T);
|
|
}
|
|
|
|
struct MyClass
|
|
{
|
|
};
|
|
namespace Lib {
|
|
template <>
|
|
class A<MyClass>
|
|
{
|
|
};
|
|
}
|
|
|
|
void someFunc()
|
|
{
|
|
Lib::A<MyClass> a;
|
|
g(a); // ok, Lib is an associated namespace of A
|
|
}
|