Skip to content

Commit e669310

Browse files
committed
.
1 parent 2f27c91 commit e669310

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

MODERNCPP_REMINDER.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,8 @@
401401
* make sure that copy assignments are safe for self-assignment.
402402
* you must never throw an exception from destructor.
403403
* you can catch exception by value, by reference or by pointer.
404+
* prefer member functions over nonmembers for operations that need access to representation.
405+
* prefer nonmember functions over members for operations that do not need access to representation.
404406

405407
* Nifty Counter Idiom:
406408
* Return Value Optimization:

0 commit comments

Comments
 (0)