parent
daa7f2d613
commit
127bea8f48
|
@ -7,7 +7,7 @@ public:
|
||||||
A(U p) {
|
A(U p) {
|
||||||
}
|
}
|
||||||
template <>
|
template <>
|
||||||
A(int p) { // expected-warning{{explicit specialization of 'A' within class scope in a Microsoft extension}}
|
A(int p) { // expected-warning{{explicit specialization of 'A' within class scope is a Microsoft extension}}
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class U>
|
template <class U>
|
||||||
|
@ -15,7 +15,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
void f(int p) { // expected-warning{{explicit specialization of 'f' within class scope in a Microsoft extension}}
|
void f(int p) { // expected-warning{{explicit specialization of 'f' within class scope is a Microsoft extension}}
|
||||||
}
|
}
|
||||||
|
|
||||||
void f(int p) {
|
void f(int p) {
|
||||||
|
@ -41,7 +41,7 @@ public:
|
||||||
B(U p) {
|
B(U p) {
|
||||||
}
|
}
|
||||||
template <>
|
template <>
|
||||||
B(int p) { // expected-warning{{explicit specialization of 'B<T>' within class scope in a Microsoft extension}}
|
B(int p) { // expected-warning{{explicit specialization of 'B<T>' within class scope is a Microsoft extension}}
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class U>
|
template <class U>
|
||||||
|
@ -51,7 +51,7 @@ public:
|
||||||
|
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
void f(int p) { // expected-warning{{explicit specialization of 'f' within class scope in a Microsoft extension}}
|
void f(int p) { // expected-warning{{explicit specialization of 'f' within class scope is a Microsoft extension}}
|
||||||
T a = 3;
|
T a = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue