Opened 7 years ago

Closed 7 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:


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:

Attachments (0)

Change History (4)

comment:1 Changed 7 years ago by Neil Groves

Status: newassigned

comment:2 Changed 7 years ago by Neil Groves

Milestone: Boost 1.43.0Boost 1.46.0
Type: BugsFeature Requests

Added the 1.46 version as a milestone, and altered from a bug to a feature request since it is an optimization.

comment:3 Changed 7 years ago by Neil Groves

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 Changed 7 years ago by anonymous

Resolution: fixed
Status: assignedclosed

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Neil Groves.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.