Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not compile with gcc-6 #11

Open
olebole opened this issue Aug 6, 2016 · 0 comments
Open

Does not compile with gcc-6 #11

olebole opened this issue Aug 6, 2016 · 0 comments

Comments

@olebole
Copy link
Member

olebole commented Aug 6, 2016

When compiling with gcc-6 (now standard on Debian testing), I get the following errors:

/build/casasynthesis-0.1/imageanalysis/IO/ImageFitterResults.cc: In static member function 'static std::vector<casa::String, std::allocator<casa::String> > casa::ImageFi
tterResults::unitPrefixes(casa::Bool)':
/build/casasynthesis-0.1/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++/6/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:444,
                 from /build/casasynthesis-0.1/imageanalysis/IO/ImageFitterResults.h:29,
                 from /build/casasynthesis-0.1/imageanalysis/IO/ImageFitterResults.cc:28:
/usr/include/c++/6/bits/vector.tcc:167: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++/6/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:444,
                 from /build/casasynthesis-0.1/imageanalysis/IO/ImageFitterResults.h:29,
                 from /build/casasynthesis-0.1/imageanalysis/IO/ImageFitterResults.cc:28:
/usr/include/c++/6/bits/stl_vector.h:450: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++/6/bits/stl_vector.h:471: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)
       ^~~~~~~~

(and similarly in the following line)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant