diff --git a/include/interval.hpp b/include/interval.hpp index 067811e..d3a14a6 100644 --- a/include/interval.hpp +++ b/include/interval.hpp @@ -101,10 +101,10 @@ constexpr interval::interval() : namespace { template -constexpr checked_result> failed_result( +constexpr checked_result> failed_result{ exception_type::domain_error, "indefinite interval" -); +}; // create constexpr versions of stl algorthms which are not (yet) // constexpr. diff --git a/include/safe_base_operations.hpp b/include/safe_base_operations.hpp index 33d6bdf..f271606 100644 --- a/include/safe_base_operations.hpp +++ b/include/safe_base_operations.hpp @@ -1457,12 +1457,14 @@ namespace { template<> struct Temp { int value; }; // secondary template +#if 0 template<> struct Temp { int value; }; // secondary template template<> struct Temp { int value; }; // secondary template +#endif } template< diff --git a/include/utility.hpp b/include/utility.hpp index 7b7ecab..985a784 100644 --- a/include/utility.hpp +++ b/include/utility.hpp @@ -46,7 +46,7 @@ namespace numeric { std::intmax_t Max > using signed_stored_type = typename boost::int_t< - std::max({log(Min), log(Max)}) + std::max(log(Min), log(Max)) >::least ; template< @@ -54,7 +54,7 @@ namespace numeric { std::uintmax_t Max > using unsigned_stored_type = typename boost::uint_t< - std::max({log(Min), log(Max)}) + std::max(log(Min), log(Max)) >::least ;