infohash: make string constructor explicit

This commit is contained in:
Adrien Béraud committed 2015-04-02 17:03:13 -04:00
1 parent ae1f33ac2d
commit 5920b2bac3
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -242,7 +242,7 @@ main(int argc, char **argv)
std::string tostr;
std::string v;
iss >> tostr >> v;
dht.putEncrypted(id, tostr, dht::Value {
dht.putEncrypted(id, InfoHash(tostr), dht::Value {
dht::ValueType::USER_DATA.id,
std::vector<uint8_t> {v.begin(), v.end()}
}, [](bool ok) {