EricWF accepted this revision.
EricWF added a comment.
This revision is now accepted and ready to land.

> Creating a function pointer with proper parameters pointing to std::next() or 
> std::prev() should work.

Actually, according to the standard taking the address of a STL function is UB, 
and users should avoid doing it as much as possible since it's fundamentally 
non-portable.

However as a QoI change I think this is OK.


https://reviews.llvm.org/D34649



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to