Modernize syntax of enable_if and traits to use _t helpers
[alexxy/gromacs.git] / src / gromacs / mdspan / layouts.h
index 4e1cda739dde4949e6a259ac44787177a5d7cdaf..0b6d073c9e4cad31c7f800d55528963a7a0a143b 100644 (file)
@@ -186,7 +186,7 @@ class layout_right
                  * \returns One-dimensional integer index.
                  */
                 template<class ... Indices >
-                typename std::enable_if<sizeof ... (Indices) == Extents::rank(), index_type>::type
+                std::enable_if_t<sizeof ... (Indices) == Extents::rank(), index_type>
                 constexpr operator()( Indices ... indices ) const noexcept
                 { return offset( 0, 0, indices ... ); }