Skip to content

Commit

Permalink
value: Add assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
lhmouse committed Feb 7, 2024
1 parent 9bc6d53 commit c6a1ac4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions asteria/value.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class Value
ROCKET_ENABLE_IF(my_Valuable<xValue>::is_enabled)>
Value(xValue&& xval) noexcept(my_Valuable<xValue>::is_noexcept)
{
ROCKET_ASSERT(this->m_stor.index() == 0);
my_Valuable<xValue>::assign(this->m_stor, forward<xValue>(xval));
}

Expand Down

0 comments on commit c6a1ac4

Please sign in to comment.