I asked a question here: Lifetime Extension of a initializer_list return involving the non-functional code:
const auto foo = [](const auto& a, const auto& b, const auto& c) { return {a, b, c}; };
I believed the lambda was trying to return an intializer_list
(that's bad, don't do that.) But I got a comment:
It's not an
initializer_list
, it's an initializer list. Two different things.
I just thought that any time you did a curly-braced list you were creating an intializer_list
. If that's not what's happening, what is a list in curly-braces?