From 48830d190fd8d96a5bda00b351a0453ea528f78f Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Mon, 25 Jan 2021 08:27:42 -0800 Subject: [PATCH] timespan: explicitly require TimeSpanType as is_pod --- libraries/libvapours/include/vapours/timespan.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/libvapours/include/vapours/timespan.hpp b/libraries/libvapours/include/vapours/timespan.hpp index 3219bf238..7f4695398 100644 --- a/libraries/libvapours/include/vapours/timespan.hpp +++ b/libraries/libvapours/include/vapours/timespan.hpp @@ -17,6 +17,7 @@ #pragma once #include #include +#include #include namespace ams { @@ -54,6 +55,7 @@ namespace ams { constexpr ALWAYS_INLINE friend TimeSpanType operator+(const TimeSpanType &lhs, const TimeSpanType &rhs) { TimeSpanType r(lhs); return r += rhs; } constexpr ALWAYS_INLINE friend TimeSpanType operator-(const TimeSpanType &lhs, const TimeSpanType &rhs) { TimeSpanType r(lhs); return r -= rhs; } }; + static_assert(util::is_pod::value); class TimeSpan { private: