
18 Jul
2012
18 Jul
'12
4:44 p.m.
On 7/18/2012 4:02 AM, Maxime van Noppen wrote:
But you might as well consider having:
template <typename FPT> std::string f_impl(FPT v) { }
std::string f(float v) { return f_impl(v); } std::string f(double v) { return f_impl(v); }
Don't forget long double. But +1 to the simple suggestion. -- Eric Niebler BoostPro Computing http://www.boostpro.com