According to the documentation, there are overloads of set_value
for several types:
bool set_value(const char_t* rhs);
bool set_value(int rhs);
bool set_value(unsigned int rhs);
bool set_value(double rhs);
bool set_value(bool rhs);
but not for size_t
, unless it happens to be an alias for unsigned int
.
You'll need to either change the type of k
and v
to unsigned int
, or cast when calling set_value
. If you need support for very large values which aren't representable by unsigned int
, then you'll need a better library.