Commit 349d1562 authored by Robert Maynard's avatar Robert Maynard Committed by Kitware Robot
Browse files

Merge topic 'gcc_48_iterator_fixes'


 ArrayPortalToIterators now compiles with GCC-4.X
Acked-by: Kitware Robot's avatarKitware Robot <>
Merge-request: !1934
parents 90afd1ef 83d4d4e4
Pipeline #155539 canceled with stage
in 0 seconds
......@@ -15,12 +15,26 @@
namespace vtkmstd
/// Implementation of std::void_t (C++17):
/// Allows for specialization of class templates based on members of template
/// parameters.
#if defined(VTKM_GCC) && (__GNUC__ < 5)
// Due to a defect in the wording (CWG 1558) unused parameters in alias templates
// were not guaranteed to ensure SFINAE, and therefore would consider everything
// to match the 'true' side. For VTK-m the only known compiler that implemented
// this defect is GCC < 5.
template <class... T>
struct void_pack
using type = void;
template <class... T>
using void_t = typename void_pack<T...>::type;
template <typename...>
using void_t = void;
} // end namespace vtkmstd
Supports Markdown
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