An alternative in C++14:
auto hello(int c) { struct { int a; int b; } result { c, c + 1 }; return result; }
or with gcc extensions: auto hello(int c) { return (struct { int a; int b; }) { c, c + 1 }; }
An alternative in C++14:
auto hello(int c) { struct { int a; int b; } result { c, c + 1 }; return result; }
or with gcc extensions: auto hello(int c) { return (struct { int a; int b; }) { c, c + 1 }; }