Skip to content

Tweak to fix compiling for gcc11 and -std=c++20

Paul Harris requested to merge paulharris/vtk:fix-for-cxx20 into master

Error looked like:

Common/Core/vtkSMPTools.h:106:47: error: expected unqualified-id before ‘const’
  106 |   vtkSMPTools_FunctorInternal<Functor, false>(const vtkSMPTools_FunctorInternal<Functor, false>&);
      |                                               ^~~~~
Common/Core/vtkSMPTools.h:106:47: error: expected ‘)’ before ‘const’
  106 |   vtkSMPTools_FunctorInternal<Functor, false>(const vtkSMPTools_FunctorInternal<Functor, false>&);
      |                                              ~^~~~~
      |                                               )
Common/Core/vtkSMPTools.h:137:46: error: expected unqualified-id before ‘const’
  137 |   vtkSMPTools_FunctorInternal<Functor, true>(const vtkSMPTools_FunctorInternal<Functor, true>&);
      |                                              ^~~~~
Common/Core/vtkSMPTools.h:137:46: error: expected ‘)’ before ‘const’
  137 |   vtkSMPTools_FunctorInternal<Functor, true>(const vtkSMPTools_FunctorInternal<Functor, true>&);
      |                                             ~^~~~~
      |                                              )
Edited by Paul Harris

Merge request reports