From 12ee985a68e7e85442f3eb91d17b2bf1a096c405 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 6 Dec 2020 16:48:55 +0100 Subject: [PATCH] Restrict #pragma warning to Visual Studio only. --- src/include/cppduals/duals/dual | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/include/cppduals/duals/dual b/src/include/cppduals/duals/dual index 7605552d2..4f5bf8acc 100644 --- a/src/include/cppduals/duals/dual +++ b/src/include/cppduals/duals/dual @@ -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::value)> dual(const dual & x)