r/cpp • • May 03 '26

The Most Confusing C++ Behavior

https://codestyleandtaste.com/most-confusing-C++-behavior.html
37 Upvotes

51 comments sorted by

View all comments

Show parent comment

4

u/rlbond86 May 04 '26

I assume the exception is due to initializer_list?

4

u/EdwinYZW May 04 '26

Yeah, but in context of constructors of std::vector.