topic/cross-compile
Vincent Samy 2020-03-30 18:00:43 +09:00
rodzic 213be7549b
commit 6a11b84fbc
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -35,7 +35,7 @@ SET(PROJECT_DEBUG_POSTFIX "_d")
set(INSTALL_GENERATED_HEADERS OFF)
set(DOXYGEN_USE_MATHJAX "NO")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD 14)
option(BUILD_TESTING "Disable unit tests." ON)
option(BUILD_TEST_STATIC_BOOST "Build unit tests with static boost libraries" OFF)

Wyświetl plik

@ -49,7 +49,7 @@ constexpr T Binomial(int n, int k)
template <typename T>
constexpr T pow(T n, T k)
{
static_assert(std::is_integral_v<T>, "For integral values only, eitherwise, use std::pow");
static_assert(std::is_integral<T>::value, "For integral values only, eitherwise, use std::pow");
if (n == 0)
return (k == 0) ? 1 : 0;
else if (k == 0)