ned14 / quickcpplib

Eliminate all the tedious hassle when making state-of-the-art C++ 14 - 23 libraries!

Repository from Github https://github.comned14/quickcpplibRepository from Github https://github.comned14/quickcpplib

packed_backtrace.hpp attempts to use non-existent std::span::const_iterator

gix opened this issue · comments

const_iterator was removed from span earlier this year. Using VS 16.8 with the standard <span> fails to compile:

...\quickcpplib\packed_backtrace.hpp(88,53): error C2039: 'const_iterator': is not a member of 'std::span<FramePtrType,4294967295>'
...\quickcpplib\packed_backtrace.hpp(88,53): error C2039:         with
...\quickcpplib\packed_backtrace.hpp(88,53): error C2039:         [
...\quickcpplib\packed_backtrace.hpp(88,53): error C2039:             FramePtrType=void *
...\quickcpplib\packed_backtrace.hpp(88,53): error C2039:         ]
...\quickcpplib\packed_backtrace.hpp(88,53): error C2039:       using const_iterator = typename storage_type::const_iterator;
...\quickcpplib\packed_backtrace.hpp(88,53): error C2039: 

I find that a perverse removal, so I've asked LEWG why oh why oh why?

In the meantime, I'll try to figure out a workaround. Thanks for the BR.

Try that commit there, see if it works for you.

Works fine, thanks!