18 Jul
2012
18 Jul
'12
2:40 p.m.
template <typename FPT> std::string f(FPT v) { ... }
At present I have added a run-time check, but doesn't prevent compilation (and instantiation).
if (boost::is_floating_point<FPT>::value; == false) { assert fail or something and/or return " "Type Not floating point!"; }
I don't see how enable_if can help either.
template <typename FPT>
typename enable_if