From 91506aa71ab31214180a257c047a453c2971fc85 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Mon, 28 Jun 2021 01:07:03 +0200 Subject: [PATCH] static constexpr --- libsrc/core/archive.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsrc/core/archive.hpp b/libsrc/core/archive.hpp index 201305b3..0d86df83 100644 --- a/libsrc/core/archive.hpp +++ b/libsrc/core/archive.hpp @@ -333,11 +333,11 @@ namespace ngcore } template - constexpr size_t TotSize (T & first, Trest & ...rest) const + static constexpr size_t TotSize (T & first, Trest & ...rest) { return sizeof(first) + TotSize(rest...); } - constexpr size_t TotSize () const { return 0; } + static constexpr size_t TotSize () { return 0; } template