mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-12-23 21:25:49 +00:00
remove unused typedef
This commit is contained in:
parent
c3636c10d2
commit
251c1d174e
1 changed files with 1 additions and 2 deletions
|
@ -782,8 +782,7 @@ namespace sprout {
|
|||
//
|
||||
template<typename T, typename = typename std::enable_if<std::is_arithmetic<T>::value>::type>
|
||||
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<type>()),
|
||||
return SPROUT_ASSERT(x <= sprout::math::factorial_limit<typename std::remove_cv<T>::type>()),
|
||||
sprout::math::unchecked_factorial<T>(x)
|
||||
;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue