Skip to content

Commit

Permalink
Merge pull request pezy#172 from DanielDFY/update-blob
Browse files Browse the repository at this point in the history
update ex16_29 blob.h
  • Loading branch information
pezy authored Sep 11, 2019
2 parents 03a3edb + 00dd3ce commit b24ea7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ch16/ex16_29_blob.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ template <typename T> inline BlobPtr<T>& BlobPtr<T>::operator++()
template <typename T> inline BlobPtr<T>& BlobPtr<T>::operator--()
{
--curr;
check(-1, "decrement past begin of Blob<T>Ptr");
check(curr, "decrement past begin of Blob<T>Ptr");
return *this;
}

Expand Down Expand Up @@ -382,7 +382,7 @@ template <typename T> inline ConstBlobPtr<T>& ConstBlobPtr<T>::operator++()
template <typename T> inline ConstBlobPtr<T>& ConstBlobPtr<T>::operator--()
{
--curr;
check(-1, "decrement past begin of ConstBlob<T>Ptr");
check(curr, "decrement past begin of ConstBlob<T>Ptr");
return *this;
}

Expand Down

0 comments on commit b24ea7b

Please sign in to comment.