mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
fix mixup of indentation strategies inside same codeblocks
This commit is contained in:
parent
1e49b7b7a3
commit
0855efaa1d
|
@ -1899,6 +1899,7 @@ Passing a shared smart pointer (e.g., `std::shared_ptr`) implies a run-time cost
|
||||||
|
|
||||||
**Example**:
|
**Example**:
|
||||||
|
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
auto square(T t) { return t*t; }
|
auto square(T t) { return t*t; }
|
||||||
|
|
||||||
|
@ -12110,11 +12111,11 @@ When using exceptions as your error handling mechanism, always document this beh
|
||||||
|
|
||||||
If you define a destructor, you should not use the compiler-generated copy or move operation; you probably need to define or suppress copy and/or move.
|
If you define a destructor, you should not use the compiler-generated copy or move operation; you probably need to define or suppress copy and/or move.
|
||||||
|
|
||||||
|
|
||||||
class X {
|
class X {
|
||||||
HANDLE hnd;
|
HANDLE hnd;
|
||||||
// ...
|
// ...
|
||||||
public:
|
public:
|
||||||
|
|
||||||
~X() { /* custom stuff, such as closing hnd */ }
|
~X() { /* custom stuff, such as closing hnd */ }
|
||||||
|
|
||||||
// suspicious: no mention of copying or moving -- what happens to hnd?
|
// suspicious: no mention of copying or moving -- what happens to hnd?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user