We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1731b46 commit 431d25dCopy full SHA for 431d25d
1 file changed
CppCoreGuidelines.md
@@ -17622,7 +17622,7 @@ It is a general design rule that even applies to non-templates:
17622
Minimal operator+(const Minimal&, const Minimal&);
17623
// no other operators
17624
17625
- void f(const Minimal& x, const Minimal& y)
+ void f(Minimal x, Minimal y)
17626
{
17627
if (!(x == y)) { /* ... */ } // OK
17628
if (x != y) { /* ... */ } // surprise! error
0 commit comments