Closed correaa closed 1 year ago
I worked around this by removing the use of this->
in the return type.
Not being allowed to use this
in decltype in member signatures, seems reasonable too.
(Thank you for forcing me to improve my library code)
before:
template<class It> constexpr auto assign(It first) &&
->decltype(adl_copy_n(first, this->size(), std::declval<iterator>()), void()) {
return adl_copy_n(first, this->size(), std::move(*this).begin()), void(); }
after:
template<class It> constexpr auto assign(It first) &&
->decltype(adl_copy_n(first, std::declval<size_type>(), std::declval<iterator>()), void()) {
return adl_copy_n(first, this-> size() , std::move(*this).begin()), void(); }
This solves the problem both for 195 and 198.
Hi,
I noticed a regression when going from 194 to 195.
With circle 195: https://gitlab.com/correaa/boost-multi/-/jobs/4302181279#L580 No error with 194: https://gitlab.com/correaa/boost-multi/-/jobs/4302181271#L543