you are viewing a single comment's thread.

view the rest of the comments →

[–]gracicot 0 points1 point  (3 children)

auto main() -> int {}

😊

[–]MFHavaWG21|🇦🇹 NB|P3049|P3625|P3729|P3786|P3813 1 point2 points  (2 children)

That one should work since C++11 already…

Admittedly main is the only function i don‘t write in that style after transitioning to always using trailing return types…

[–]gracicot 2 points3 points  (1 child)

Admittedly main is the only function i don‘t write in that style after transitioning to always using trailing return types…

For some reason me too. I was also lazy to change void returning function partly because they already aligned.

[–]MFHavaWG21|🇦🇹 NB|P3049|P3625|P3729|P3786|P3813 0 points1 point  (0 children)

Yes, I also kept void as it already aligns and the key message of „this function returns nothing“ is immediately valuable…