mirror of
https://github.com/reactos/CMake.git
synced 2024-12-01 15:30:40 +00:00
27 lines
280 B
C++
27 lines
280 B
C++
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
|
|
}
|