diff --git a/include/xtensor/misc/xmanipulation.hpp b/include/xtensor/misc/xmanipulation.hpp index f0af92892..f100744ac 100644 --- a/include/xtensor/misc/xmanipulation.hpp +++ b/include/xtensor/misc/xmanipulation.hpp @@ -611,7 +611,7 @@ namespace xt template inline auto squeeze(E&& e, std::size_t axis, Tag check_policy = Tag()) { - return squeeze(std::forward(e), std::array{axis}, check_policy); + return squeeze(std::forward(e), std::array{{axis}}, check_policy); } /// @endcond diff --git a/include/xtensor/views/xslice.hpp b/include/xtensor/views/xslice.hpp index 4faa17cca..054b8a8af 100644 --- a/include/xtensor/views/xslice.hpp +++ b/include/xtensor/views/xslice.hpp @@ -761,7 +761,7 @@ namespace xt } XTENSOR_GLOBAL_CONSTEXPR xtuph _{}; - XTENSOR_GLOBAL_CONSTEXPR rangemaker<> _r = rangemaker<>({0, 0, 0}); + XTENSOR_GLOBAL_CONSTEXPR rangemaker<> _r = rangemaker<>({{0, 0, 0}}); XTENSOR_GLOBAL_CONSTEXPR xall_tag _a{}; XTENSOR_GLOBAL_CONSTEXPR xnewaxis_tag _n{}; XTENSOR_GLOBAL_CONSTEXPR xellipsis_tag _e{};