diff --git a/include/xsimd/types/xsimd_batch_constant.hpp b/include/xsimd/types/xsimd_batch_constant.hpp index 35cc5d3af..ea69c2aae 100644 --- a/include/xsimd/types/xsimd_batch_constant.hpp +++ b/include/xsimd/types/xsimd_batch_constant.hpp @@ -246,14 +246,14 @@ namespace xsimd namespace detail { template - XSIMD_INLINE constexpr auto make_batch_constant(detail::index_sequence) noexcept - -> batch_constant + XSIMD_INLINE constexpr batch_constant + make_batch_constant(detail::index_sequence) noexcept { return {}; } template - XSIMD_INLINE constexpr auto make_batch_bool_constant(detail::index_sequence) noexcept - -> batch_bool_constant + XSIMD_INLINE constexpr batch_bool_constant + make_batch_bool_constant(detail::index_sequence) noexcept { return {}; } @@ -281,18 +281,17 @@ namespace xsimd * @endcode */ template - XSIMD_INLINE constexpr auto make_batch_constant() noexcept -> decltype(detail::make_batch_constant(detail::make_index_sequence::size>())) + XSIMD_INLINE constexpr decltype(detail::make_batch_constant(detail::make_index_sequence::size>())) + make_batch_constant() noexcept { - return detail::make_batch_constant(detail::make_index_sequence::size>()); + return {}; } template - XSIMD_INLINE constexpr auto make_batch_bool_constant() noexcept - -> decltype(detail::make_batch_bool_constant( - detail::make_index_sequence::size>())) + XSIMD_INLINE constexpr decltype(detail::make_batch_bool_constant(detail::make_index_sequence::size>())) + make_batch_bool_constant() noexcept { - return detail::make_batch_bool_constant( - detail::make_index_sequence::size>()); + return {}; } } // namespace xsimd