Re:My favourite C++ footgun
by Koshkin on Tuesday June 22, 2021 @11:28PM
(#27600471)
Not always, e.g. not if your class includes a member that is a reference (and, say, aggregate initialization is not allowed for one reason or another).
[ Parent
| on HN ]
It seems to work for me: https://godbolt.org/z/68s8qsP6K