- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
#include <iostream>
#include <stdio.h>
void foo(const long) { std::cout << "long" << std::endl; }
template<typename _type_>
void omg()
{
short i = 0;
foo(i);
}
void foo(const short) { std::cout << "short" << std::endl; }
int main(int, char*[])
{
omg<int>();
getchar();
return 0;
}
TheCalligrapher 09.04.2012 18:32 # 0
roman-kashitsyn 09.04.2012 18:34 # +7