From 3fd15cb99352919e6c4abb4667ec1acf2f73db71 Mon Sep 17 00:00:00 2001 From: fintarin Date: Mon, 19 Feb 2024 12:24:11 +0300 Subject: [PATCH] Make MathObjectType constructor consteval --- include/fintamath/core/MathObjectTypes.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fintamath/core/MathObjectTypes.hpp b/include/fintamath/core/MathObjectTypes.hpp index 7e85ce4dc..756ee96c8 100644 --- a/include/fintamath/core/MathObjectTypes.hpp +++ b/include/fintamath/core/MathObjectTypes.hpp @@ -161,12 +161,12 @@ struct MathObjectType final { using enum Id; public: - constexpr MathObjectType(const size_t rhs, const std::string_view inName) + consteval MathObjectType(const size_t inId, const std::string_view inName) : name(inName), - id(rhs) { + id(inId) { } - constexpr MathObjectType(const Id inId, const std::string_view inName) + consteval MathObjectType(const Id inId, const std::string_view inName) : MathObjectType(static_cast(inId), inName) { }