by "Roman.Perepelitsa@[EMAIL PROTECTED]
" <Roman.Perepelitsa@[EMAIL PROTECTED]
>
Apr 11, 2008 at 11:34 AM
Is this program valid? Why? If yes then what it prints?
#include <iostream>
#include <ostream>
enum { value };
template <class T>
int f(T) { return 1; }
int f(int) { return 2; }
int main()
{
std::cout << f(value) << std::endl;
}
Roman Perepelitsa.
--
[ See http://www.gotw.ca/resources/clcm.htm
for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]