Skip to content

Commit

Permalink
delete unnecessary std::
Browse files Browse the repository at this point in the history
  • Loading branch information
caofengl authored Feb 17, 2018
1 parent d492af7 commit cd9f1c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ch13/ex13_26.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,21 @@ class StrBlob {
data->pop_back();
}

std::string& front() {
string& front() {
check(0, "front on empty StrBlob");
return data->front();
}

std::string& back() {
string& back() {
check(0, "back on empty StrBlob");
return data->back();
}

const std::string& front() const {
const string& front() const {
check(0, "front on empty StrBlob");
return data->front();
}
const std::string& back() const {
const string& back() const {
check(0, "back on empty StrBlob");
return data->back();
}
Expand Down

0 comments on commit cd9f1c3

Please sign in to comment.