Consider the following code:
void foo() { return void(); } void bar() { return void{}; }
foo() compiles, but bar() doesn't (using GCC 8.2 and clang 7.0 on GodBolt).
foo()
bar()
Why?
Aucun commentaire:
Enregistrer un commentaire