Skip to content

Commit 431d25d

Browse files
authored
fix complile problem in T.21 (#2322)
1 parent 1731b46 commit 431d25d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CppCoreGuidelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17622,7 +17622,7 @@ It is a general design rule that even applies to non-templates:
1762217622
Minimal operator+(const Minimal&, const Minimal&);
1762317623
// no other operators
1762417624

17625-
void f(const Minimal& x, const Minimal& y)
17625+
void f(Minimal x, Minimal y)
1762617626
{
1762717627
if (!(x == y)) { /* ... */ } // OK
1762817628
if (x != y) { /* ... */ } // surprise! error

0 commit comments

Comments
 (0)