Opened 9 years ago
Last modified 9 years ago
#9178 new Feature Requests
Use type deduction instead of boost::function to store lambda
Reported by: | Owned by: | Lorenzo Caminiti | |
---|---|---|---|
Milestone: | To Be Determined | Component: | scope_exit |
Version: | Boost 1.54.0 | Severity: | Optimization |
Keywords: | Cc: |
Description
boost::function is used to store lambda, which may cause superfluous allocation. It is possible to use type deduction instead.
Note:
See TracTickets
for help on using tickets.
Google "folly/ScopeGuard.h" for example of technique (can't insert link here).