Details
Description
boost::optional::get() has undefined behavior without checking if the optional exists with has_value() first. We are already switching on the underlying type of the variant _value, so if we want to throw an assertion if the invariant that the densify value and the densify unit are different, we should switch to boost::optional::value() in those cases.