This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
template <typename T1, typename T2> inline T1 foo (T1 const& a, T2 const& b) { // .... return a/b; }
int main()
{
std::cout << foo(4.,0) << std::endl; return 0; }
I compiled the testprogramm with following command:
g++ -W -Wall -pedantic -o test test.cpp
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |