From a7956de7ba2d1bcb3a27de5bf652edcaa78887f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 15 Jun 2020 12:49:24 +0200 Subject: [PATCH] Math: avoid std::is_pod. GCC 10 complains that it's deprecated. --- src/Magnum/Math/Dual.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Math/Dual.h b/src/Magnum/Math/Dual.h index 0e6b0c311..68a96af6c 100644 --- a/src/Magnum/Math/Dual.h +++ b/src/Magnum/Math/Dual.h @@ -72,7 +72,7 @@ template class Dual { constexpr explicit Dual(ZeroInitT) noexcept; #else /* MSVC 2015 can't handle {} instead of ::value */ - template::value>::type> constexpr explicit Dual(ZeroInitT) noexcept: _real{}, _dual{} {} + template::value && std::is_trivial::value>::type> constexpr explicit Dual(ZeroInitT) noexcept: _real{}, _dual{} {} template::value>::type> constexpr explicit Dual(ZeroInitT) noexcept: _real{ZeroInit}, _dual{ZeroInit} {} #endif @@ -81,7 +81,7 @@ template class Dual { explicit Dual(NoInitT) noexcept; #else /* MSVC 2015 can't handle {} instead of ::value */ - template::value>::type> explicit Dual(NoInitT) noexcept {} + template::value && std::is_trivial::value>::type> explicit Dual(NoInitT) noexcept {} template::value>::type> explicit Dual(NoInitT) noexcept: _real{NoInit}, _dual{NoInit} {} #endif