Skip to content

Commit

Permalink
fix private constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Prevter authored Nov 1, 2024
1 parent ff10c8a commit 828e780
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/rift/value.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,10 @@ namespace rift {
Boolean,
};

private:
Value() : m_value(std::monostate{}) {}
Value(Type type, std::variant<int64_t, double, bool, std::string, std::monostate> value)
: m_type(type), m_value(std::move(value)) {}

public:
static Value null() {
return Value(Type::Null, std::monostate{});
}
Expand Down

0 comments on commit 828e780

Please sign in to comment.