Skip to content

Commit

Permalink
Replaced bits_t<T> with std::uintmax_t
Browse files Browse the repository at this point in the history
Should enable the gcc 7 compilation, following the advice from agenium-scale#508 .
  • Loading branch information
dievsky authored Jan 16, 2019
1 parent 4fd8176 commit f2a8066
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/boost/simd/detail/constant_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,28 +58,28 @@ namespace boost { namespace simd { namespace detail
>::type;


template<typename T, bits_t<T> N, bits_t<T> M = 0>
template<typename T, std::uintmax_t N, std::uintmax_t M = 0>
struct constantify
{
using type = std::integral_constant<T,T(N)>;
};

template<bits_t<double> V> struct constantify<double,V>
template<std::uintmax_t V> struct constantify<double,V>
{
using type = brigand::double_<V>;
};

template<bits_t<double> V, bits_t<float> W> struct constantify<double,V,W>
template<std::uintmax_t V, std::uintmax_t W> struct constantify<double,V,W>
{
using type = brigand::double_<V>;
};

template<bits_t<double> V> struct constantify<float,V>
template<std::uintmax_t V> struct constantify<float,V>
{
using type = brigand::single_<V>;
};

template<bits_t<double> V, bits_t<float> W> struct constantify<float,V,W>
template<std::uintmax_t V, std::uintmax_t W> struct constantify<float,V,W>
{
using type = brigand::single_<W>;
};
Expand Down

0 comments on commit f2a8066

Please sign in to comment.