diff --git a/include/opendht/infohash.h b/include/opendht/infohash.h index c69529704c0c8d08c4fc9f879f605b0d1e19ac3d..e6d979af4819a996abdd6da3af79d8237938fb0e 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(); }