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: Evgeny.Panasyuk@… 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.

Change History (1)

comment:1 by Evgeny.Panasyuk@…, 9 years ago

Google "folly/ScopeGuard.h" for example of technique (can't insert link here).

Note: See TracTickets for help on using tickets.