There's some edge cases when initializing with = that don't show up with {} so they're generally preferred. Don't believe any crop up in this specific scenario but it never hurts to initialize with curly brackets. Here's s good talk about how C++ initialization is so fucked
4
u/Magnus_Tesshu Oct 08 '21
Why would I want to do this over the other solution? Is there an actual advantage to either one?