Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Soyn committed May 3, 2016
1 parent b4a8cf1 commit 3f6de31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch13/ex13_08.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class HasPtr {
HasPtr(const HasPtr &hp) : ps(new std::string(*hp.ps)), i(hp.i) { }
HasPtr& operator=(const HasPtr &rhs_hp) {
if(this != &rhs_hp){
std :: string *temp_ps = new std :: string(*rhs_hp);
std::string *temp_ps = new std::string(*rhs_hp.ps);
delete ps;
ps = temp_ps;
i = rhs_hp.i;
Expand Down

0 comments on commit 3f6de31

Please sign in to comment.