prog.cpp: In function ‘int main()’:
prog.cpp:11:25: error: invalid initialization of reference of type ‘std::initializer_list<B*>&&’ from expression of type ‘<brace-enclosed initializer list>’
for(auto &&o: {&b, {&c}}) {
^
prog.cpp:11:13: warning: unused variable ‘o’ [-Wunused-variable]
for(auto &&o: {&b, {&c}}) {
^