Workaround for no <type_traits>

This commit is contained in:
jzmaddock
2021-08-08 19:34:37 +01:00
parent 6895525d38
commit a854324526

View File

@@ -4,6 +4,8 @@
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/config.hpp>
#ifndef BOOST_NO_CXX11_HDR_TYPE_TRAITS
#include <type_traits>
#if BOOST_IS_CONSTANT_EVALUATED_VERSION >= 2
@@ -36,6 +38,7 @@ inline constexpr int factorial2(int i)
return i * factorial2(i - 1);
}
#endif
#endif
int main()
{