Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

Commented Issue: Missing constructor for 64-bit number in json [351]

$
0
0
One bit of the puzzle to integrate 64-bit numbers in JSON seems to be missing. You only provide the following methods to create numbers:


```
static _ASYNCRTIMP value __cdecl number(double value);
static _ASYNCRTIMP value __cdecl number(int32_t value);
```

Obviously one of the missing static method would look like this:

```
web::json::value web::json::value::number(int64_t value)
{
return web::json::value(value);
}
```

Comments: Hi Steve, thanks, I somehow missed the value constructors. I'll contribute as soon as codeplex allows me to fork the casablanca repository, for the last 24 hours I only got "The source control server is currently unavailable. Please try again later." when trying. Also thanks for the nice work! Hannes

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>