File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -669,7 +669,7 @@ namespace xt
669669 template <class It >
670670 inline auto xfunction<F, CT...>::element(It first, It last) const -> const_reference
671671 {
672- std::apply ([&](auto &... e){
672+ return std::apply ([&](auto &... e){
673673 XTENSOR_TRY (check_element_index (shape (), first, last));
674674 return m_f (e.element (first, last)...);
675675 }, m_e);
Original file line number Diff line number Diff line change @@ -62,9 +62,9 @@ OPTION(XTENSOR_ENABLE_WERROR "Turn on -Werror" OFF)
6262set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DXSIMD_ENABLE_XTL_COMPLEX=1" )
6363if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR (CMAKE_CXX_COMPILER_ID MATCHES "Intel" AND NOT WIN32 ))
6464 CHECK_CXX_COMPILER_FLAG(-march=native arch_native_supported)
65- if (arch_native_supported AND NOT CMAKE_CXX_FLAGS MATCHES "-march" )
66- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native" )
67- endif ()
65+ # if(arch_native_supported AND NOT CMAKE_CXX_FLAGS MATCHES "-march")
66+ # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
67+ # endif()
6868 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_cxx_std_flag} -Wunused-parameter -Wextra -Wreorder -Wconversion -Wno-sign-conversion " )
6969 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wold-style-cast -Wunused-variable -ftemplate-backtrace-limit=0" )
7070 if (XTENSOR_DISABLE_EXCEPTIONS)
You can’t perform that action at this time.
0 commit comments