mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Merge pull request #175 from tkruse/fix-inconsistent-code-indent
fix mixup of indentation strategies inside same codeblocks
This commit is contained in:
commit
5a4c7aaa7f
|
@ -1899,6 +1899,7 @@ Passing a shared smart pointer (e.g., `std::shared_ptr`) implies a run-time cost
|
|||
|
||||
**Example**:
|
||||
|
||||
|
||||
template<class 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.
|
||||
|
||||
|
||||
class X {
|
||||
HANDLE hnd;
|
||||
// ...
|
||||
public:
|
||||
|
||||
~X() { /* custom stuff, such as closing hnd */ }
|
||||
|
||||
// suspicious: no mention of copying or moving -- what happens to hnd?
|
||||
|
|
Loading…
Reference in New Issue
Block a user