twiggler / slotmap

Slotmap is a sequence container with weak reference keys written in C++17.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

transform_iterator and c++ lambda's

twiggler opened this issue · comments

Under the hood, slotmap uses boost::transform_iterator with lambdas. This results in compilation errors when combining them with certain adapters from boost::range or algorithms which require default construction of those iterators, because lambdas are not default constructable. The range-v3 library, which is part of this formal proposal, will add ranges with proper lambda support to the standard library, when accepted. Until then, this issue will not be fixed.