Even easier than that. Behold the power of uniform initialization:
foo({1,2});
solved Is it possible to create temp structs/classes with initializer lists? [closed]
Even easier than that. Behold the power of uniform initialization:
foo({1,2});
solved Is it possible to create temp structs/classes with initializer lists? [closed]