r/cpp • • May 03 '26

The Most Confusing C++ Behavior

https://codestyleandtaste.com/most-confusing-C++-behavior.html
37 Upvotes

51 comments sorted by

View all comments

Show parent comment

7

u/Rabbitical May 04 '26

My god, Allman brackets AND "auto& a" are you guys hiring

3

u/meltbox May 04 '26

Lmao, I don’t know when but at some point our coding standard went to Allman brackets and I had to make sure I wasn’t dreaming.

But we are stuck in the stone ages in terms of c++ version… so…

2

u/JVApen Clever is an insult, not a compliment. - T. Winters May 04 '26

I know the feeling. When introducing clang-format, we switched from Whitesmiths to Allman. The next big formatting changes I would like to roll out would be const west and moving the & and * left. Though it will still take some time. Luckily, we are already on C++20 and preparing for 23.