Relative Content

Tag Archive for c++language-lawyerc++23

Explicit object member function discrepancies between different compilers

The bounty expires in 6 days. Answers to this question are eligible for a +400 reputation bounty. Alan wants to reward an existing answer. I wrote the following program in c++23. Here I’ve overloaded member functions. But for all cases different compilers give different result as shown below in comment. As you can see I […]

Explicit this object parameter wonkiness

So, I was toying around with some little code snippet that I’d seen passing by on Reddit, and it made me wonder if the code is actually legal and in accordance with the C++23 standard. Because, as it seems, all of the major compilers (Clang, GCC, and MSVC), have something different to say about it.