Skip to content

Commit db2e5b4

Browse files
committedNov 2, 2023
Fix compilation on clang 10
1 parent 8662c39 commit db2e5b4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed
 

‎source/glkernel/include/glkernel/noise.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ void uniform(tkernel<V> & kernel, const typename V::value_type range_min, const
310310
kernel.template for_each<uniform_operator<typename V::value_type>>(range_min, range_max);
311311
}
312312

313-
template <typename V, typename std::enable_if<std::is_floating_point<typename V::value_type>::value>::type * = nullptr>
313+
template <typename V, typename std::enable_if<std::is_floating_point<typename V::value_type>::value>::type *>
314314
void uniform(tkernel<V> & kernel, const V & range_min, const V & range_max)
315315
{
316316
kernel.template for_each<uniform_operator<typename V::value_type>>(range_min, range_max);
@@ -366,13 +366,13 @@ void normal(tkernel<T> & kernel, const T mean, const T stddev)
366366
kernel.template for_each<normal_operator<T>>(mean, stddev);
367367
}
368368

369-
template <typename V, typename std::enable_if<std::is_floating_point<typename V::value_type>::value>::type * = nullptr>
369+
template <typename V, typename std::enable_if<std::is_floating_point<typename V::value_type>::value>::type *>
370370
void normal(tkernel<V> & kernel, const typename V::value_type mean, const typename V::value_type stddev)
371371
{
372372
kernel.template for_each<normal_operator<typename V::value_type>>(mean, stddev);
373373
}
374374

375-
template <typename V, typename std::enable_if<std::is_floating_point<typename V::value_type>::value>::type * = nullptr>
375+
template <typename V, typename std::enable_if<std::is_floating_point<typename V::value_type>::value>::type *>
376376
void normal(tkernel<V> & kernel, const V & mean, const V & stddev)
377377
{
378378
kernel.template for_each<normal_operator<typename V::value_type>>(mean, stddev);

‎source/glkernel/include/glkernel/scale.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void range(tkernel<T> & kernel, T rangeToLower, T rangeToUpper, T rangeFromLower
6161
kernel.template for_each_element<range_operator<T>>(rangeToLower, rangeToUpper, rangeFromLower, rangeFromUpper);
6262
}
6363

64-
template <typename V, typename std::enable_if<std::is_floating_point<typename V::value_type>::value>::type * = nullptr>
64+
template <typename V, typename std::enable_if<std::is_floating_point<typename V::value_type>::value>::type *>
6565
void range(tkernel<V> & kernel, typename V::value_type rangeToLower, typename V::value_type rangeToUpper, typename V::value_type rangeFromLower, typename V::value_type rangeFromUpper)
6666
{
6767
kernel.template for_each_element<range_operator<typename V::value_type>>(rangeToLower, rangeToUpper, rangeFromLower, rangeFromUpper);

‎source/glkernel/include/glkernel/sequence.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ void uniform(tkernel<T> & kernel, const T range_min, const T range_max)
6666
kernel.template for_each<uniform_operator<T>>(range_min, range_max);
6767
}
6868

69-
template<typename V, typename std::enable_if<std::is_floating_point<typename V::value_type>::value>::type * = nullptr>
69+
template<typename V, typename std::enable_if<std::is_floating_point<typename V::value_type>::value>::type *>
7070
void uniform(tkernel<V> & kernel, const typename V::value_type range_min, const typename V::value_type range_max)
7171
{
7272
kernel.template for_each<uniform_operator<typename V::value_type>>(range_min, range_max);
7373
}
7474

75-
template<typename V, typename std::enable_if<std::is_floating_point<typename V::value_type>::value>::type * = nullptr>
75+
template<typename V, typename std::enable_if<std::is_floating_point<typename V::value_type>::value>::type *>
7676
void uniform(tkernel<V> & kernel, const V & range_min, const V & range_max)
7777
{
7878
kernel.template for_each<uniform_operator<typename V::value_type>>(range_min, range_max);

0 commit comments

Comments
 (0)