diff --git a/include/opendht/infohash.h b/include/opendht/infohash.h index d7ae4070..dcefcd0c 100644 --- a/include/opendht/infohash.h +++ b/include/opendht/infohash.h @@ -283,6 +283,7 @@ std::istream& operator>> (std::istream& s, Hash& h) s.exceptions(std::istream::eofbit | std::istream::failbit); s.read(&(*dat.begin()), dat.size()); fromString(dat.data()); + return s; } template