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.
Replace boost::optional::get() with boost::optional::value in DensifyValue to avoid undefined behavior
- Votes:
-
0 Vote for this issue
- Watchers:
-
2 Start watching this issue
- Created:
- Updated:
- Resolved: