From 6a11b84fbc10c16aa28a38f570e444277731ce32 Mon Sep 17 00:00:00 2001 From: Vincent Samy Date: Mon, 30 Mar 2020 18:00:43 +0900 Subject: [PATCH] Set to c++14. --- CMakeLists.txt | 2 +- include/math_utils.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d304f8..9a461ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/include/math_utils.h b/include/math_utils.h index c44cbd2..5265942 100644 --- a/include/math_utils.h +++ b/include/math_utils.h @@ -49,7 +49,7 @@ constexpr T Binomial(int n, int k) template constexpr T pow(T n, T k) { - static_assert(std::is_integral_v, "For integral values only, eitherwise, use std::pow"); + static_assert(std::is_integral::value, "For integral values only, eitherwise, use std::pow"); if (n == 0) return (k == 0) ? 1 : 0; else if (k == 0)