Skip to content
Snippets Groups Projects
  • Sam Yates's avatar
    Fix bugs in util::variant assignment implementation. (#1137) · 0f0102ae
    Sam Yates authored
    * Fix copy-paste error that led to legitimate copies throwing a bad_variant_access exception.
    * Fix exception safety for the case when an error thrown in copy assignment takes the lhs to valueless.
    * Fix wrong valueless semantics associated with an exception being thrown during move assignment.
    * Add unit tests that exercise these issues.
    
    Fixes #1136.
    Unverified
    0f0102ae