remove unused typedef

This commit is contained in:
bolero-MURAKAMI 2015-03-23 00:29:21 +09:00
parent c3636c10d2
commit 251c1d174e

View file

@ -782,8 +782,7 @@ namespace sprout {
// //
template<typename T, typename = typename std::enable_if<std::is_arithmetic<T>::value>::type> template<typename T, typename = typename std::enable_if<std::is_arithmetic<T>::value>::type>
inline SPROUT_CONSTEXPR T factorial(std::size_t x) { inline SPROUT_CONSTEXPR T factorial(std::size_t x) {
typedef typename std::remove_cv<T>::type type; return SPROUT_ASSERT(x <= sprout::math::factorial_limit<typename std::remove_cv<T>::type>()),
return SPROUT_ASSERT(x <= sprout::math::factorial_limit<type>()),
sprout::math::unchecked_factorial<T>(x) sprout::math::unchecked_factorial<T>(x)
; ;
} }