E
Ebenezer
I'm looking for some advice with this.
template <typename B, typename T, unsigned chunk_size>
void
segmented_arrayMarshal (B& buf, ::neolib::segmented_array<T,
chunk_size> const& grp)
{
typename ::neolib::segmented_array<T, chunk_size>::segment& seg =
::neolib::segmented_iterator<T,
chunk_size>(grp.begin()).segment();
// ...
}
../MarshallingFunctions.hh:180:87: error: no matching function for call
../MarshallingFunctions.hh:180:87: note: candidates are:
../segmented_array.h:668:5: note: neolib::segmented_iterator<T, N,
A>::segmented_iterator(const base&) [with T = double, unsigned int N =
64u, A = std::allocator<double>, neolib::segmented_iterator<T, N,
A>::base = neolib::segmented_array<double, 64u>::iterator]
../segmented_array.h:668:5: note: no known conversion for argument 1
from ‘neolib::segmented_array<double, 64u>::const_iterator’ to ‘const
base& {aka const neolib::segmented_array<double, 64u>::iterator&}’
../segmented_array.h:664:7: note: neolib::segmented_iterator<double,
64u, std::allocator<double> >::segmented_iterator(const
neolib::segmented_iterator<double, 64u, std::allocator<double> >&)
../segmented_array.h:664:7: note: no known conversion for argument 1
from ‘neolib::segmented_array<double, 64u>::const_iterator’ to ‘const
neolib::segmented_iterator<double, 64u, std::allocator<double> >&’
It builds if I remove the const, but think the const should stay.
Tia.
Brian
Ebenezer Enterprises
http://webEbenezer.net
template <typename B, typename T, unsigned chunk_size>
void
segmented_arrayMarshal (B& buf, ::neolib::segmented_array<T,
chunk_size> const& grp)
{
typename ::neolib::segmented_array<T, chunk_size>::segment& seg =
::neolib::segmented_iterator<T,
chunk_size>(grp.begin()).segment();
// ...
}
../MarshallingFunctions.hh:180:87: error: no matching function for call
64u>::const_iterator)’to ‘neolib::segmented_iterator said:::segmented_iterator(neolib::segmented_array<double,
../MarshallingFunctions.hh:180:87: note: candidates are:
../segmented_array.h:668:5: note: neolib::segmented_iterator<T, N,
A>::segmented_iterator(const base&) [with T = double, unsigned int N =
64u, A = std::allocator<double>, neolib::segmented_iterator<T, N,
A>::base = neolib::segmented_array<double, 64u>::iterator]
../segmented_array.h:668:5: note: no known conversion for argument 1
from ‘neolib::segmented_array<double, 64u>::const_iterator’ to ‘const
base& {aka const neolib::segmented_array<double, 64u>::iterator&}’
../segmented_array.h:664:7: note: neolib::segmented_iterator<double,
64u, std::allocator<double> >::segmented_iterator(const
neolib::segmented_iterator<double, 64u, std::allocator<double> >&)
../segmented_array.h:664:7: note: no known conversion for argument 1
from ‘neolib::segmented_array<double, 64u>::const_iterator’ to ‘const
neolib::segmented_iterator<double, 64u, std::allocator<double> >&’
It builds if I remove the const, but think the const should stay.
Tia.
Brian
Ebenezer Enterprises
http://webEbenezer.net