[PATCH] D106784: [ADT] function_ref captures function pointers by value
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 26 14:12:41 PDT 2021
dblaikie added a comment.
What advantage would this narrow use case have over using a raw function pointer (a function pointer member, in the case of the "S" example, for instance)? implicit parameter/return type conversions? Usually I find those to be more hazardous than intentional.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106784/new/
https://reviews.llvm.org/D106784
More information about the llvm-commits
mailing list