cltemp17.c
来自「开放源码的编译器open watcom 1.6.0版的源代码」· C语言 代码 · 共 22 行
C
22 行
#include "fail.h"
template< int I > struct X {
static int const c = 2;
};
template<> struct X< 0 > {
typedef int c;
};
template< typename T > struct Y {
static int const c = 3;
};
static int const c = 4;
int main() {
if( (Y<X<1> >::c >::c>::c) != 0 ) fail( __LINE__ );
if( (Y<X< 1>>::c >::c>::c) != 0 ) fail( __LINE__ );
_PASS;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?