Move declerations for code style

This commit is contained in:
Danny Robson 2012-05-26 18:02:38 +10:00
parent 247d47f733
commit 83343ee7a1

View File

@ -68,12 +68,22 @@ almost_equal (const T &a, const T &b)
{ return a == b; }
template <>
bool
almost_equal (const float &a, const float &b);
template <>
bool
almost_equal (const double &a, const double &b);
template <typename Ta, typename Tb>
typename std::enable_if<
std::is_arithmetic<Ta>::value && std::is_arithmetic<Tb>::value,
bool
>::type
almost_equal (const Ta &a, const Tb &b) {
almost_equal (Ta a, Tb b) {
return almost_equal <decltype(a + b)> (static_cast<decltype(a + b)>(a),
static_cast<decltype(a + b)>(b));
}
@ -123,16 +133,6 @@ to_radians (double degrees) {
}
template <>
bool
almost_equal (const float &a, const float &b);
template <>
bool
almost_equal (const double &a, const double &b);
/// Variadic minimum
template <typename T>
const T&