Is this code legal? It compiles but I'm wondering what happens with the return value. Undefined behavior?
class Foo { public: void test1() { } auto test() -> decltype(test1()) { return test1(); //<---return void here! } };
Aucun commentaire:
Enregistrer un commentaire