- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
void print(int i) {printf("int: %d\n", i);}
void print(double f) {printf("double: %f\n", f);}
void print(char const * c) {printf("str: %s\n", c);}
void WTF(...) {}
template<typename... T>
void print(T ... t)
{
WTF((print(t), 0)...);
}
int main()
{
print(1, "hello", 3.0);
return 0;
}
LispGovno 03.12.2013 22:27 # 0
LispGovno 03.12.2013 22:35 # 0
Qwertiy 06.12.2013 22:04 # +1
LispGovno 06.12.2013 22:09 # +2