Skip to content
Snippets Groups Projects
Unverified Commit 0f0102ae authored by Sam Yates's avatar Sam Yates Committed by GitHub
Browse files

Fix bugs in util::variant assignment implementation. (#1137)

* 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.
parent 7c9a3193
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment