未验证 提交 d9c3abe6 编写于 作者: Y Yuanle Liu 提交者: GitHub

remove need cpp14 support (#52867)

上级 ef734e84
......@@ -83,7 +83,7 @@ else()
if(WITH_MKL)
set(FLAG_OPENMP "-fopenmp")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 ${FLAG_OPENMP}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 ${FLAG_OPENMP}")
endif()
if(WITH_GPU)
......
......@@ -105,16 +105,16 @@ struct PADDLE_ALIGN(sizeof(T) * 2) complex {
template <typename T1 = T>
HOSTDEVICE explicit complex(
const std::enable_if_t<std::is_same<T1, float>::value, complex<double>>&
val) {
const typename std::enable_if<std::is_same<T1, float>::value,
complex<double>>::type& val) {
real = val.real;
imag = val.imag;
}
template <typename T1 = T>
HOSTDEVICE explicit complex(
const std::enable_if_t<std::is_same<T1, double>::value, complex<float>>&
val) {
const typename std::enable_if<std::is_same<T1, double>::value,
complex<float>>::type& val) {
real = val.real;
imag = val.imag;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册