atat-mirror/src/teststatic.c++

17 lines
143 B
C++
Raw Permalink Normal View History

2023-08-31 20:30:18 +02:00
template<class T>
class A {
public:
static T x;
};
class B {
public:
int y;
};
template <> B A<B>::x;
int main(void) {
A<B>::x.y=1;
}