help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: warning with function templates [Ooops, fix]


From: Christian Christmann
Subject: Re: warning with function templates [Ooops, fix]
Date: Sun, 17 Jul 2005 13:45:43 +0200

> template <class T>
> T GetValue(T t) {
>     if (t == 1)
>         return 1;
>     else
>         return T(2.55);
>     }
>     }
> ....compiled without warning.
> output:
> 

Thank you, that was what I was looking for.

Chris


reply via email to

[Prev in Thread] Current Thread [Next in Thread]