Permalink
Browse files

Return bool from empty()

  • Loading branch information...
rescrv committed Sep 10, 2013
1 parent 50cf54d commit 7264f0c493041e1fbf57c02eee4c584ea72e87db
Showing with 1 addition and 1 deletion.
  1. +1 −1 e/unpacker.h
View
@@ -52,7 +52,7 @@ class unpacker
slice as_slice() const;
bool error() const { return m_error; }
size_t remain() const { return m_ptr_sz; }
- size_t empty() const { return m_ptr_sz == 0; }
+ bool empty() const { return m_ptr_sz == 0; }
public:
unpacker operator >> (int8_t& rhs);

0 comments on commit 7264f0c

Please sign in to comment.