Talk:cpp/utility/variant/valueless by exception
From cppreference.com
I have a question about this item: "(guaranteed) an exception is thrown during the move initialization of the contained value from the temporary in copy assignment" 1. It is not clear how "move initialization" can occur during a "copy assignment" 2. According the content of the page about assignment: "Copy-assignment: [...] If an exception is thrown, *this does not become valueless: the value depends on the exception safety guarantee of the alternative's copy assignment." So this item seems incorrect to me --Mmatrosov (talk) 08:39, 5 March 2019 (PST)