WhiZTiM / UbjsonCpp

A high performance C++14 library for effortlessly reading and writing UBJSON
24 stars 11 forks source link

Problems with unsigned int and unsigned long #11

Open tnovotny opened 6 years ago

tnovotny commented 6 years ago

The test code

unsigned int ui = 42u;
unsigned long ul = 42u;

value["unsigned int"] = ui;
value["unsigned long"] = ul;

does not compile because of ambiguity. To remove the ambiguity, additional constructors must be added.