Skip to content

Commit 97dd8f1

Browse files
committed
All tests passing
1 parent 7781852 commit 97dd8f1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/xtensor/core/xfunction.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

test/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ OPTION(XTENSOR_ENABLE_WERROR "Turn on -Werror" OFF)
6262
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DXSIMD_ENABLE_XTL_COMPLEX=1")
6363
if(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)

0 commit comments

Comments
 (0)