diff --git a/include/opendht/infohash.h b/include/opendht/infohash.h index c6952970..e6d979af 100644 --- a/include/opendht/infohash.h +++ b/include/opendht/infohash.h @@ -85,7 +85,7 @@ public: msgpack_unpack(o); } - constexpr size_t size() const noexcept { return data_.size(); } + static constexpr size_t size() noexcept { return N; } const uint8_t* data() const { return data_.data(); } uint8_t* data() { return data_.data(); } iterator begin() { return data_.begin(); }