Skip to content

Commit

Permalink
Update ex14_32.cpp
Browse files Browse the repository at this point in the history
Simplify the implementation.
  • Loading branch information
clare-lsy committed May 18, 2016
1 parent 18f15fe commit 5becd6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ch14/ex14_32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
#include <iostream>

StrBlobPtr&
StrBlobPtr_pointer::operator *()
StrBlobPtr_pointer::operator *() const
{
return *(this->pointer);
return *pointer;
}

StrBlobPtr*
StrBlobPtr_pointer::operator ->()
StrBlobPtr_pointer::operator ->() const
{
return & this->operator *();
return pointer;
}

int main()
Expand Down

0 comments on commit 5becd6a

Please sign in to comment.