forked from boostorg/config
Workaround for no <type_traits>
This commit is contained in:
@@ -4,6 +4,8 @@
|
|||||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
|
#ifndef BOOST_NO_CXX11_HDR_TYPE_TRAITS
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
#if BOOST_IS_CONSTANT_EVALUATED_VERSION >= 2
|
#if BOOST_IS_CONSTANT_EVALUATED_VERSION >= 2
|
||||||
@@ -36,6 +38,7 @@ inline constexpr int factorial2(int i)
|
|||||||
return i * factorial2(i - 1);
|
return i * factorial2(i - 1);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user