Skip to content

Commit

Permalink
Make MathObjectType constructor consteval
Browse files Browse the repository at this point in the history
  • Loading branch information
fintarin committed Feb 19, 2024
1 parent 9adc5a9 commit 3fd15cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/fintamath/core/MathObjectTypes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<size_t>(inId), inName) {
}

Expand Down

0 comments on commit 3fd15cb

Please sign in to comment.