mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-19 15:10:38 +00:00
Intel compiler 2017 fix
This commit is contained in:
parent
6fd3132e81
commit
8706fb9085
@ -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
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user