|
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
[Prev in Thread] | Current Thread | [Next in Thread] |