Open
Description
In a catch block, if a thrown type has a non-trivial copy constructor, cpy
isn't passively invoked for the user. See: https://godbolt.org/z/vfxPx5cWb
In the case of throwing a constructed object, the static constraint on references prevents this code from compiling as well: https://godbolt.org/z/T5o6TbWPz
Activity
seanbaxter commentedon Oct 2, 2024