Tuesday, 27 August 2013

VS 2013 Preview allows to call free functions using curly braces

VS 2013 Preview allows to call free functions using curly braces

To my surprise VS 2013 compiled this without a error:
#include <utility>
auto main() -> int {
auto p = std::make_pair{123, 12.3f};
return 0;
}
Is this some new feature or what? Probably a bug...

No comments:

Post a Comment