Mittwoch, 15. Dezember 2010

Test for “Paste from VS” plug-in

Pasted from ScribblePapers:

void BoostTests()
{
DbgLog(__FUNCTIONW__);

boost::array<int, 3> myIntArray;
myIntArray[0] = 2;
myIntArray[1] = 8;
myIntArray[2] = 1976;

int result = 0;

foreach (int number, myIntArray)
{
result += number;
}
}


Pasted from VS2008:



(including VisualAssist X with enhanced syntax coloring ….)




void BoostTests()

{


    DbgLog(__FUNCTIONW__);



    //LOG::VATest vatest;

    //vatest.TestVAFindAcrossProjects();



    boost::array<int, 3> myIntArray;

    myIntArray[0] = 2;


    myIntArray[1] = 8;


    myIntArray[2] = 1976;



    int result = 0;



    foreach (int number, myIntArray)

    {


        result += number;


    }


}

Keine Kommentare: