::result_type is undefined for lambdas, but we now have decltype!
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
This looks okay to me, but I don't know enough C++ to have an idea of the corner cases here.
I have added the unittest for map_iterator. My final goal is to move map_range somewhere, but I was planning to do it in next CL.
Looks good to me - thanks!
(I'd probably just include one of those two tests - not like the test new/unique/separate codepaths really, but I'm not too fussed)
I had to roll it back because of MSVC:
C:\Buildbot\Slave\llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast\llvm.src\include\llvm/ADT/STLExtras.h(120): error C2100: illegal indirection
C:\Buildbot\Slave\llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast\llvm.src\include\llvm/IR/Instructions.h(3966): note: see reference to class template instantiation 'llvm::mapped_iterator<llvm::User::op_iterator,llvm::CatchSwitchInst::DerefFnTy>' being compiled