I have downloaded and installed cppvisualizers to allow better handling of boost data structure in Visual Studio 2012.
https://cppvisualizers.codeplex.com/
It does not have support for boost::numeric::ublas::vector and boost::numeric::ublas::matrix so I tried to follow the instructions available here regarding natvis support: http://code.msdn.microsoft.com/windowsdesktop/Writing-type-visualizers-2eae77a2
I have added a file called ublas.natvis into \Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Packages\Debugger\Visualizers. It contains the following code:
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="boost::numeric::ublas::vector<*>">
<DisplayString>"UBLAS Vector: Test Failure"</DisplayString>
<Expand>
<Item Name="[size]">_Mylast - _Myfirst</Item>
<Item Name="[capacity]">_Myend - _Myfirst</Item>
<ArrayItems>
<Size>_Mylast - _Myfirst</Size>
<ValuePointer>_Myfirst</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="std::vector<*>">
<DisplayString>"STD Vector: Test Success"</DisplayString>
<Expand>
<Item Name="[size]">_Mylast - _Myfirst</Item>
<Item Name="[capacity]">_Myend - _Myfirst</Item>
<ArrayItems>
<Size>_Mylast - _Myfirst</Size>
<ValuePointer>_Myfirst</ValuePointer>
</ArrayItems>
</Expand>
</Type>
</AutoVisualizer>
The visualizer is able to successfully detect my custom string for std::vector. However no luck when I hover over boost::numeric::ublas::vector. Could you please guide me on setting up debugger visualizers for boost vector and matrix.
Thanks for your help.