I have objects of different types derived from a single super-type. I wonder if there are any disadvantages in using std::initializer list in a range for loop like
std::initializer
You can simply write
for(auto object : {object1, object2, object3}) { // work }