Intel compiler 2017 fix

This commit is contained in:
Wenzel Jakob 2016-09-07 23:37:40 +09:00
parent 6fd3132e81
commit 8706fb9085
2 changed files with 6 additions and 3 deletions

View File

@ -15,8 +15,9 @@
NAMESPACE_BEGIN(pybind11) NAMESPACE_BEGIN(pybind11)
NAMESPACE_BEGIN(detail) NAMESPACE_BEGIN(detail)
#if defined(__INTEL_COMPILER)
#if defined(__clang__) /* C++14 features not supported for now */
#elif defined(__clang__)
# if __has_feature(cxx_return_type_deduction) && __has_feature(cxx_relaxed_constexpr) # if __has_feature(cxx_return_type_deduction) && __has_feature(cxx_relaxed_constexpr)
# define PYBIND11_CPP14 # define PYBIND11_CPP14
# endif # endif

View File

@ -11,7 +11,9 @@
#include "numpy.h" #include "numpy.h"
#if defined(__GNUG__) || defined(__clang__) #if defined(__INTEL_COMPILER)
# pragma warning(disable: 1682) // implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
#elif defined(__GNUG__) || defined(__clang__)
# pragma GCC diagnostic push # pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wconversion" # pragma GCC diagnostic ignored "-Wconversion"
# pragma GCC diagnostic ignored "-Wdeprecated-declarations" # pragma GCC diagnostic ignored "-Wdeprecated-declarations"