[Bug c++/91742] User defined conversion references
diego@franco-technologies.com
gcc-bugzilla@gcc.gnu.org
Thu Sep 12 13:01:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91742
--- Comment #9 from Diego Franco <diego@franco-technologies.com> ---
Correction/editing of last section of former comment:
...
- init brace does not work for user defined conversion reference WITHOUT static
cast:
A a {};
const std::vector<int>& b {a}; // changed from "auto" to "std::vector<int>"
assert(&a == &b); // does not work
...
...
More information about the Gcc-bugs
mailing list