Skip to content

remove explicit assignment operator in SIMDWrapper to suppress gcc9 warning.

Olli Lupton requested to merge olupton_fix_simdwrapper_gcc9_warning into master

Fixes errors like:

/home/olupton/vscode-stack/LHCb/InstallArea/x86_64+avx2+fma-centos7-gcc9-opt+g/include/LHCbMath/Vec3.h:38:51: warning: implicitly-declared ‘constexpr SIMDWrapper::avx2::float_v::float_v(const SIMDWrapper::avx2::float_v&)’ is deprecated [-Wdeprecated-copy] In file included from /home/olupton/vscode-stack/LHCb/InstallArea/x86_64+avx2+fma-centos7-gcc9-opt+g/include/Event/PrVeloHits.h:14, from ../Pr/PrPixel/src/VeloClusterTracking.h:31, from ../Pr/PrPixel/src/VeloClusterTracking.cpp:19: /home/olupton/vscode-stack/LHCb/InstallArea/x86_64+avx2+fma-centos7-gcc9-opt+g/include/LHCbMath/SIMDWrapper.h:362:16: note: because ‘SIMDWrapper::avx2::float_v’ has user-provided ‘SIMDWrapper::avx2::float_v& SIMDWrapper::avx2::float_v::operator=(const SIMDWrapper::avx2::float_v&)’

As far as I can see the operator I remove is just the same as the one that would have been implicitly generated.

cc: @ahennequ

Edited by Marco Cattaneo

Merge request reports