Turn off ICC's conversion warning in is_convertible implementation

This commit is contained in:
Gael Guennebaud 2016-05-26 10:48:43 +02:00
parent cc1ab64f29
commit 40e4637d79

View File

@ -115,7 +115,14 @@ private:
public: public:
static From ms_from; static From ms_from;
#ifdef __INTEL_COMPILER
#pragma warning push
#pragma warning ( disable : 2259 )
#endif
enum { value = sizeof(test(ms_from, 0))==sizeof(yes) }; enum { value = sizeof(test(ms_from, 0))==sizeof(yes) };
#ifdef __INTEL_COMPILER
#pragma warning pop
#endif
}; };
template<typename From, typename To> template<typename From, typename To>