From 36616d6e0b50c6b4b9ead87c63c4d07dc0ce895d 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 --- libvapours/include/vapours/timespan.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libvapours/include/vapours/timespan.hpp b/libvapours/include/vapours/timespan.hpp index 3219bf23..7f469539 100644 --- a/libvapours/include/vapours/timespan.hpp +++ b/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: