Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.
This repository was archived by the owner on Jun 1, 2026. It is now read-only.

cpprest.natvis broken with VS2015 #7

Description

Ported from CodePlex discussion: https://casablanca.codeplex.com/discussions/646435
As per bsergeev:

I am trying to use cpprest.natvis in VS2015 to look at the value in web::json::value variable, but I'm getting this error:
Natvis: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Packages\Debugger\Visualizers\cpprest.natvis(168,68): Error: a pointer to a bound function may only be used to call the function
Error while evaluating '(_((web::json::details::Number)((m_value).Myptr))).m_number' in the context of type 'XXX.dll!web::json::value'.
The error is about checking the m_kind:


{(
((web::json::details::Number)((m_value)._Myptr))).m_number}

It looks like web::json::value::Number is correct description of an element of web::json::value_type enum, so, what's the problem here?

Are all you guys in Casablanca team working in Linux and nobody is using VS2015? It's not that bad, check it out! :-)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions