From 98aaacaef8b641a32dd7f8d35ee3791c45faf6ff Mon Sep 17 00:00:00 2001 From: Dave DeMarle Date: Wed, 13 Jul 2016 13:33:20 -0400 Subject: [PATCH] fix windows compilation This one snuck in during the recent big big merge. With the if WIN32 code in the headers, we get errors like C:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe ....lots skipped.... \ /FoVTK\ThirdParty\xdmf3\vtkxdmf3\core\CMakeFiles\XdmfCoreObjects.dir\XdmfHeavyDataDescription.cpp.obj \ /FdVTK\ThirdParty\xdmf3\vtkxdmf3\core\CMakeFiles\XdmfCoreObjects.dir\ \ /FS -c C:\bbd\1c569048\source-paraview\VTK\ThirdParty\xdmf3\vtkxdmf3\core\XdmfHeavyDataDescription.cpp C:\bbd\1c569048\build\install\include\boost-1_56\boost/smart_ptr/shared_ptr.hpp(658) : error C2562: 'boost::shared_ptr::operator []' : 'void' function returning a value C:\bbd\1c569048\build\install\include\boost-1_56\boost/smart_ptr/shared_ptr.hpp(653) : see declaration of 'boost::shared_ptr::operator []' Really really need windows tests on the xdmf dashboard, and xdmf turned on in vtk buildbot. This was only detected all the way up in ParaView pain. --- core/XdmfHeavyDataDescription.hpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/XdmfHeavyDataDescription.hpp b/core/XdmfHeavyDataDescription.hpp index 34935099..0c464560 100644 --- a/core/XdmfHeavyDataDescription.hpp +++ b/core/XdmfHeavyDataDescription.hpp @@ -80,14 +80,6 @@ private: std::string mPortDescription; }; -#ifdef _WIN32 -XDMFCORE_TEMPLATE template class XDMFCORE_EXPORT -shared_ptr; -XDMFCORE_TEMPLATE template class XDMFCORE_EXPORT -Loki::Visitor, - shared_ptr >; -#endif - #endif #ifdef __cplusplus -- GitLab