mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
fix parantheses in example
() => {} in initializer list
This commit is contained in:
parent
d2b5249aef
commit
4278cd5c92
@ -11525,7 +11525,7 @@ Hungarian notation is evil (at least in a strongly statically-typed language).
|
||||
|
||||
struct S {
|
||||
int m_;
|
||||
S(int m) :m_(abs(m)) { }
|
||||
S(int m) :m_{abs(m)} { }
|
||||
};
|
||||
|
||||
This is not evil.
|
||||
|
Loading…
x
Reference in New Issue
Block a user