Skip to content

Visual studio 2015 update3 true != TRUE #317

Description

@alessiodallapiazza

Good evening,
I was playing with this fantastic project and while using the function value for getting a result from a json file I met an exception.
The problem is that the visual studio TRUE is not used as the same true.
My JSON file:

{
    "ok": true
}

The error is when I use the value function with TRUE instead of true.

if (j.value("ok",false)) // WORKS

if (j.value("ok",FALSE)) // EXCEPTION

Some reference:
http://stackoverflow.com/questions/830067/when-should-bool-and-bool-be-used-in-c

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions