3 ms·
You can do this in C++ 14. auto f() -> decltype(auto) { ... return (struct { int firstPlayer; int secondPlayer; }) {localPlayer
by mgraczyk 11y ago
You can do this in C++ 14.
auto f() -> decltype(auto) {
...
return (struct {
int firstPlayer;
int secondPlayer;
}) {localPlayer, connectedPlayer};
}