Open gijzelaerr opened 6 years ago
adding -DCXX1=ON to cmake doesn't trigger the ifdefs in source:
/packaging/kern/packaging/build/casasynthesis/imageanalysis/IO/ImageFitterResults.cc:278:74: error: ambiguous overload for ‘operator=’ (operand types are ‘std::vector<casa::String, std::allocator<casa::String> >’ and ‘boost::assign_detail ::generic_list<char [2]>’) _prefixesWithCenti = list_of("T")("G")("M")("k")("")("c")("m")("u")("n"); ^ In file included from /usr/include/c++/7/vector:69:0, from /usr/include/casacore/casa/Arrays/IPosition.h:35, from /usr/include/casacore/casa/Quanta/Quantum.tcc:36, from /usr/include/casacore/casa/Quanta/Quantum.h:453, from /packaging/kern/packaging/build/casasynthesis/imageanalysis/IO/ImageFitterResults.h:29, from /packaging/kern/packaging/build/casasynthesis/imageanalysis/IO/ImageFitterResults.cc:28: /usr/include/c++/7/bits/vector.tcc:179:5: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = casa::String; _Alloc = std::allocator<casa::String>] vector<_Tp, _Alloc>:: ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/7/vector:64:0, from /usr/include/casacore/casa/Arrays/IPosition.h:35, from /usr/include/casacore/casa/Quanta/Quantum.tcc:36, from /usr/include/casacore/casa/Quanta/Quantum.h:453, from /packaging/kern/packaging/build/casasynthesis/imageanalysis/IO/ImageFitterResults.h:29, from /packaging/kern/packaging/build/casasynthesis/imageanalysis/IO/ImageFitterResults.cc:28: /usr/include/c++/7/bits/stl_vector.h:461:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = casa::String; _Alloc = std::allocator<casa::String>] operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move()) ^~~~~~~~ /usr/include/c++/7/bits/stl_vector.h:482:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = casa::String; _Alloc = std::allocator<casa::String>] operator=(initializer_list<value_type> __l) ^~~~~~~~ /packaging/kern/packaging/build/casasynthesis/imageanalysis/IO/ImageFitterResults.cc:279:60: error: ambiguous overload for ‘operator=’ (operand types are ‘std::vector<casa::String, std::allocator<casa::String> >’ and ‘boost::assign_detail ::generic_list<char [2]>’) _prefixes = list_of("T")("G")("M")("k")("")("m")("u")("n");
worked around in package with patch
https://github.com/kernsuite-debian/casasynthesis/blob/a7bfdeb9d1dce0f89ac9cd0d2a1286bed5d429fd/debian/patches/fixes_for_casacore_241
I just removed the CXX11 ifdef statement.
adding -DCXX1=ON to cmake doesn't trigger the ifdefs in source: