prog.cpp: In instantiation of 'void data::get_data(std::vector<T>&) const [with T = double]':
prog.cpp:35:22: required from here
prog.cpp:18:21: error: no match for 'operator=' (operand types are 'std::vector<double>' and 'const std::vector<char>')
outdata = cdata;
^
In file included from /usr/include/c++/5/vector:69:0,
from prog.cpp:1:
/usr/include/c++/5/bits/vector.tcc:167:5: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = double; _Alloc = std::allocator<double>]
vector<_Tp, _Alloc>::
^
/usr/include/c++/5/bits/vector.tcc:167:5: note: no known conversion for argument 1 from 'const std::vector<char>' to 'const std::vector<double>&'
In file included from /usr/include/c++/5/vector:64:0,
from prog.cpp:1:
/usr/include/c++/5/bits/stl_vector.h:448:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = double; _Alloc = std::allocator<double>]
operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
^
/usr/include/c++/5/bits/stl_vector.h:448:7: note: no known conversion for argument 1 from 'const std::vector<char>' to 'std::vector<double>&&'
/usr/include/c++/5/bits/stl_vector.h:470:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = double; _Alloc = std::allocator<double>]
operator=(initializer_list<value_type> __l)
^
/usr/include/c++/5/bits/stl_vector.h:470:7: note: no known conversion for argument 1 from 'const std::vector<char>' to 'std::initializer_list<double>'