File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ if(ENABLE_DX_IMPL AND WIN32)
178178 )
179179endif (ENABLE_DX_IMPL AND WIN32 )
180180
181- if (NOT CMAKE_GENERATOR_PLATFORM MATCHES "ARM64" AND NOT CMAKE_APPLE_SILICON_PROCESSOR STREQUAL "arm64" )
181+ if (NOT " ${ CMAKE_GENERATOR_PLATFORM} " STREQUAL "ARM64" AND NOT " ${ CMAKE_APPLE_SILICON_PROCESSOR} " STREQUAL "arm64" )
182182 if (MSVC )
183183 if (NOT CMAKE_CL_64 )
184184 set_source_files_properties (internal /TextureUtilsSSE2.cpp PROPERTIES COMPILE_FLAGS /arch:SSE2)
@@ -199,7 +199,7 @@ if(NOT CMAKE_GENERATOR_PLATFORM MATCHES "ARM64" AND NOT CMAKE_APPLE_SILICON_PROC
199199 set_source_files_properties (internal /RendererAVX2.cpp PROPERTIES COMPILE_FLAGS "-mavx2 -mfma" )
200200 set_source_files_properties (internal /RendererAVX512.cpp PROPERTIES COMPILE_FLAGS "-mavx2 -mfma -mavx512f -mavx512bw -mavx512dq -mavx512vl" )
201201 endif ()
202- endif (NOT CMAKE_GENERATOR_PLATFORM MATCHES "ARM64" AND NOT CMAKE_APPLE_SILICON_PROCESSOR STREQUAL "arm64" )
202+ endif (NOT " ${ CMAKE_GENERATOR_PLATFORM} " STREQUAL "ARM64" AND NOT " ${ CMAKE_APPLE_SILICON_PROCESSOR} " STREQUAL "arm64" )
203203
204204configure_file (${CMAKE_CURRENT_SOURCE_DIR} /Config.h.in ${CMAKE_CURRENT_SOURCE_DIR} /Config.h)
205205
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ if (MSVC)
4747 set_source_files_properties (test_simd.cpp PROPERTIES COMPILE_FLAGS /Ob0)
4848endif ()
4949
50- if (NOT "${CMAKE_GENERATOR_PLATFORM} " STREQUAL "ARM64" AND NOT CMAKE_APPLE_SILICON_PROCESSOR STREQUAL "arm64" )
50+ if (NOT "${CMAKE_GENERATOR_PLATFORM} " STREQUAL "ARM64" AND NOT " ${ CMAKE_APPLE_SILICON_PROCESSOR} " STREQUAL "arm64" )
5151 if (MSVC )
5252 if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
5353 set_source_files_properties (test_simd_sse41.cpp PROPERTIES COMPILE_FLAGS -msse4.1)
@@ -63,7 +63,7 @@ if(NOT "${CMAKE_GENERATOR_PLATFORM}" STREQUAL "ARM64" AND NOT CMAKE_APPLE_SILICO
6363 set_source_files_properties (test_simd_avx2.cpp PROPERTIES COMPILE_FLAGS "-mavx2 -mfma" )
6464 set_source_files_properties (test_simd_avx512.cpp PROPERTIES COMPILE_FLAGS "-mavx2 -mfma -mavx512f -mavx512bw -mavx512dq -mavx512vl" )
6565 endif ()
66- endif (NOT "${CMAKE_GENERATOR_PLATFORM} " STREQUAL "ARM64" AND NOT CMAKE_APPLE_SILICON_PROCESSOR STREQUAL "arm64" )
66+ endif (NOT "${CMAKE_GENERATOR_PLATFORM} " STREQUAL "ARM64" AND NOT " ${ CMAKE_APPLE_SILICON_PROCESSOR} " STREQUAL "arm64" )
6767
6868target_link_libraries (test_Ray Ray ${LIBS} )
6969
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class ThreadPool {
2121 ~ThreadPool ();
2222
2323 template <class F , class ... Args>
24- std::future<typename std::result_of<F( Args...)>::type > Enqueue (F &&f, Args &&... args);
24+ std::future<typename std::invoke_result_t <F, Args...> > Enqueue (F &&f, Args &&...args);
2525
2626 template <class UnaryFunction > void ParallelFor (int from, int to, UnaryFunction &&f);
2727
@@ -63,8 +63,8 @@ inline ThreadPool::ThreadPool(const size_t threads_count) : stop_(false) {
6363
6464// add new work item to the pool
6565template <class F , class ... Args>
66- std::future<typename std::result_of<F( Args...)>::type > ThreadPool::Enqueue (F &&f, Args &&... args) {
67- using return_type = typename std::result_of< F ( Args...)>::type ;
66+ std::future<typename std::invoke_result_t <F, Args...> > ThreadPool::Enqueue (F &&f, Args &&...args) {
67+ using return_type = typename std::invoke_result_t <F, Args...> ;
6868
6969 auto task =
7070 std::make_shared<std::packaged_task<return_type ()>>(std::bind (std::forward<F>(f), std::forward<Args>(args)...));
You can’t perform that action at this time.
0 commit comments