Name | Last modified | Size | Description | |
---|---|---|---|---|
Parent Directory | - | |||
Makefile | 2015-02-11 11:05 | 809 | ||
README | 2015-02-11 11:05 | 376 | ||
smart_pointer-test-const.cpp | 2015-02-11 11:05 | 4.3K | ||
smart_pointer.cpp | 2015-02-11 11:05 | 866 | ||
smart_pointer.h | 2015-02-11 11:05 | 2.4K | ||
Smart pointer I, Step 3 ----------------------- Adaptions for operating on const smart pointer have been made. The member functions for operator !, == and != was declared const already in step 2. const versions of operator* and operator-> have been added. There must be a version for const smart pointers and one for non-const smart pointers, to enforce correct semantics.