This project has moved and is read-only. For the latest updates, please go here.

Support for boost::value_initialized

Oct 1, 2014 at 12:10 PM
Edited Oct 1, 2014 at 12:11 PM
Hi,

could you please add support for value_initialized, e.g.
<Type Name="boost::value_initialized&lt;*&gt;">
    <DisplayString>{*(($T1 *)(&amp;m_data.x))}</DisplayString>
    <Expand>
        <ExpandedItem>m_data</ExpandedItem>
    </Expand>
</Type>

<Type Name="boost::initialized&lt;*&gt;">
    <DisplayString>{*(($T1 *)(&amp;x))}</DisplayString>
    <Expand>
        <ExpandedItem>x</ExpandedItem>
    </Expand>
</Type>
Tobias
Oct 1, 2014 at 7:14 PM
How test this vizualizer? Can you write simple sample?
Oct 2, 2014 at 7:57 AM
Hi,

a simple test could be
#include <boost/utility/value_init.hpp>
void TestValueInitialized()
{
    boost::value_initialized<int> vi_int;
    boost::value_initialized<double> vi_double;
    // vi_int == 0 and vi_double == 0.0

    // change values
    get(vi_int)=42;
    get(vi_double)=12.34;
}
While testing I found out that the VS 2012 visualizer doesn't seem to understand enum- and enum class-types as template params (for VS 2013/2014CTP I do not know).
Do you know any workaround?

Tobias
Nov 16, 2014 at 4:59 PM
Thank you. Version 1.0.17 support your visualizers
Marked as answer by KindDragon on 11/18/2014 at 3:12 PM