Restrict #pragma warning to Visual Studio only.

This commit is contained in:
Holger Vogt 2020-12-06 16:48:55 +01:00
parent c7f732b098
commit 12ee985a68
1 changed files with 2 additions and 0 deletions

View File

@ -528,7 +528,9 @@ public:
: _real(re), _dual(du) {}
/// Copy construct from a dual of equal depth.
#if defined (_MSC_VER)
#pragma warning (disable : 4244) /* floats are not used in HICUM */
#endif
template<class X, CPPDUALS_ONLY_SAME_DEPTH_AS_T(T,X),
CPPDUALS_ENABLE_IF(!is_complex<X>::value)>
dual(const dual<X> & x)