[vtk-developers] VS6 compile error for vtkPContingencyStatistics
Bill Lorensen
bill.lorensen at gmail.com
Mon Apr 20 15:20:03 EDT 2009
Sorry, I sent it before with a munged subject.
Folks,
The compile errors for VS6:
http://www.cdash.org/CDash/viewBuildError.php?buildid=316621
are easily fixed with the portable changes in the code below. I did
run all of the InfoVis tests. I did not check in the changes because I
can't tell if this code is covered by testing. The current coverage
build:
http://www.cdash.org/CDash/index.php?project=VTK&date=2009-04-20
does not include InfoVis.
FYI: push_back on strings is implemented as append on some stl
implementations and clear() is implemented as erase() on Borland.
Could an InfoVis person verify that these changes are valid and please
check them into cvs?
Thanks,
Bill
void PackValues( const vtkstd::vector<vtkStdString>& values,
vtkStdString& buffer )
{
buffer.erase(); // equivalent to buffer.clear()
for( vtkstd::vector<vtkStdString>::const_iterator it = values.begin();
it != values.end(); ++ it )
{
buffer.append( *it );
buffer.append(1, 0); // equilvalent to buffer.push_back( 0 )
}
}
More information about the vtk-developers
mailing list