In file %VSINSTALLDIR%\Common7\Packages\Debugger\Visualizers\defaultvis.natvis definition of <DisplayString> for shared_ptr refer to non-existing (private) member std::_Ref_count_base::Uses:<DisplayString Condition="(_Rep->Uses == 1) && (_Rep->_Weaks - 1 > 0) && (_Rep->_Weaks - 1 == 1)">shared_ptr {*_Ptr} [{_Rep->_Uses} strong ref, {_Rep->_Weaks - 1} weak ref] [{*_Rep}] </DisplayString>This leads to parsing error of the visualizer:Natvis: Evaluating visualizer expression (_Rep->Uses == 1) && (_Rep->_Weaks - 1 > 0) && (_Rep->_Weaks - 1 == 1) in context std::shared_ptr<int>. Failed to parse expression: class "std::_Ref_count_base" has no member "Uses".The fix is to replace the Uses with _Uses to correctly refer to member std::_Ref_count_base::_UsesBy the way, this may be related to http://connect.microsoft.com/VisualStudio/feedback/details/705993/
Visual Studio/Team Foundation Server/.NET Framework Tooling version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results
Please wait...