mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Add a line to help remark identify code block inside bullet list
This commit is contained in:
parent
a2dba2e78b
commit
2c8b34653d
|
@ -14027,8 +14027,10 @@ This is a problem for people modernizing code.
|
|||
You can
|
||||
|
||||
* update the library to be `const`-correct; preferred long-term solution
|
||||
* "cast away `const`"; [best avoided](#Res-casts-const).
|
||||
* provide a wrapper function; for example
|
||||
* "cast away `const`"; [best avoided](#Res-casts-const)
|
||||
* provide a wrapper function
|
||||
|
||||
Example:
|
||||
|
||||
void f(int* p); // old code: f() does not modify `*p`
|
||||
void f(const int* p) { f(const_cast<int*>(p); } // wrapper
|
||||
|
|
Loading…
Reference in New Issue
Block a user