Opened 12 years ago
Closed 12 years ago
#4226 closed Feature Requests (fixed)
operator safe bool
Reported by: | Domagoj Šarić | Owned by: | Neil Groves |
---|---|---|---|
Milestone: | Boost 1.46.0 | Component: | range |
Version: | Boost 1.44.0 | Severity: | Optimization |
Keywords: | Cc: |
Description
The current implementation uses member function pointers which has known efficiency problems with the MSVC++ compilers. Either the solution from shared_ptr<> should be copied again or a reusable utility class/function/macro should be exctracted/created...
Relevant recent boost.devel discussions: http://article.gmane.org/gmane.comp.lib.boost.devel/203037/match=operator_bool http://article.gmane.org/gmane.comp.lib.boost.devel/200191/match=safe+bool
Change History (4)
comment:1 by , 12 years ago
Status: | new → assigned |
---|
comment:2 by , 12 years ago
Milestone: | Boost 1.43.0 → Boost 1.46.0 |
---|---|
Type: | Bugs → Feature Requests |
comment:3 by , 12 years ago
Committed a first implementation on the trunk. The implementation of safe_bool is currently in the range_detail namespace. It is implemented with the intention to be pushed out of the range library for better reuse.
comment:4 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Added the 1.46 version as a milestone, and altered from a bug to a feature request since it is an optimization.