update Directive.

This commit is contained in:
ykiko
2024-08-14 21:44:05 +08:00
parent 939394927c
commit a94b33d012
8 changed files with 318 additions and 107 deletions

View File

@@ -1,11 +1,15 @@
template<typename T>
struct X{
void foo(){};
};
#if 1
template<>
void X<int>::foo(){
int x = 1;
}
#else
int y = 2;
#endif
#ifdef X
int y = 2;
#endif