Assigning 64bit values

Apr 1, 2014 at 4:52 PM
Edited Apr 1, 2014 at 5:19 PM
I can check to see if a value is 64bit and get it as a 64bit value but I dont see how to assign a 64bit value to a web::value item. The constructors only take double, int32_t. Does anybody know how to assign a 64bit value to web::value?


I just found that something along these lines compiles for a UInt64 but not for a UInt32.
web::value id;
unsigned long long foo = 42 << 48;

id[L"foo"] = foo;
Apr 1, 2014 at 5:35 PM
Well the answer is to just assign the value as needed. I was thrown off earlier by not being able to directly assign an "unsigned long" value but having to cast it through "uint32_t". The example I gave above works.
Marked as answer by Ryland42 on 4/1/2014 at 9:35 AM