From bf4e838e206b99649772e9cfdedc34553f175c77 Mon Sep 17 00:00:00 2001 From: Adrien Beraud Date: Fri, 3 Nov 2017 13:40:13 -0400 Subject: [PATCH] InfoHash: return stream in operator>> --- include/opendht/infohash.h | 1 + 1 file changed, 1 insertion(+) 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