Commit a43f9181 authored by Dominik Thoennes's avatar Dominik Thoennes Committed by Markus Holzer
Browse files

Resolve "Test cuda and codegen in CI"

parent 2c1a52f4
This diff is collapsed.
......@@ -338,7 +338,7 @@ inline std::size_t hash_value( const Cell & cell )
{
std::size_t seed;
if constexpr( sizeof(std::size_t) >= 8 )
if( sizeof(std::size_t) >= 8 )
{
seed = (static_cast<std::size_t>(cell.x()) << 42) +
(static_cast<std::size_t>(cell.y()) << 21) +
......
......@@ -1561,12 +1561,12 @@ struct Vector2LexicographicalyLess
// \param v The vector the hash is computed for.
// \returns A hash for the entire Vector2.
*/
template< typename T, typename Enable = std::enable_if_t<std::is_integral_v<T>> >
template< typename T, typename Enable = std::enable_if_t<std::is_integral<T>::value> >
std::size_t hash_value( const Vector2<T> & v )
{
std::size_t seed;
if constexpr( sizeof(std::size_t) >= 8 )
if( sizeof(std::size_t) >= 8 )
{
seed = (static_cast<std::size_t>(v[0]) << 42) +
(static_cast<std::size_t>(v[1]) << 21);
......
......@@ -1847,12 +1847,12 @@ struct Vector3LexicographicalyLess
// \param v The vector the hash is computed for.
// \returns A hash for the entire Vector3.
*/
template< typename T, typename Enable = std::enable_if_t<std::is_integral_v<T>> >
template< typename T, typename Enable = std::enable_if_t<std::is_integral<T>::value> >
std::size_t hash_value( const Vector3<T> & v )
{
std::size_t seed;
if constexpr( sizeof(std::size_t) >= 8 )
if( sizeof(std::size_t) >= 8 )
{
seed = (static_cast<std::size_t>(v[0]) << 42) +
(static_cast<std::size_t>(v[1]) << 21) +
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment