[vtk-developers] VTK forces -std=c++11 ?
Sean McBride
sean at rogue-research.com
Fri Jan 11 18:50:45 EST 2019
On Fri, 11 Jan 2019 15:04:21 -0500, Brad King said:
>It's likely CMake adding it based on Common/Core/CMakeLists.txt:
>
>```
>vtk_module_compile_features(VTK::CommonCore
> PUBLIC
> cxx_std_11
> cxx_nullptr
> cxx_override)
>```
So all this time I thought some of my bots were building as C++11, some C++14, some C++17, I have in fact been doing no such thing. :(
As a hack, I did a global replace of cxx_std_11 with cxx_std_14/17, and it turns out VTK 8.2 doesn't even build as either:
ThirdParty/lz4/vtklz4/lib/lz4.h:439:12: error: an attribute list cannot appear here
LZ4LIB_API LZ4_DEPRECATED("use LZ4_compress_default() instead") int LZ4_compress (const char* source, char* dest, int sourceSize);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Filters/Core/vtkCellDataToPointData.cxx:85:31: error: no member named 'bind2nd' in namespace 'std'
std::bind2nd(std::divides<T>(), denom));
~~~~~^
IO/XML/vtkXMLReader.cxx:1002:39: error: no member named 'ptr_fun' in namespace 'std'
std::not1(std::ptr_fun<int, int>(isspace))));
~~~~~^
Filters/FlowPaths/vtkTemporalStreamTracer.cxx:301:12: error: no member named 'bind2nd' in namespace 'std'
std::bind2nd( WithinTolerance( ), requestedTimeValue ))
~~~~~^
Sean
More information about the vtk-developers
mailing list