Modify

Ticket #4226 (closed Feature Requests: fixed)

Opened 4 years ago

Last modified 3 years ago

operator safe bool

Reported by: psiha Owned by: neilgroves
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

Attachments

Change History

comment:1 Changed 3 years ago by neilgroves

  • Status changed from new to assigned

comment:2 Changed 3 years ago by neilgroves

  • Type changed from Bugs to Feature Requests
  • Milestone changed from Boost 1.43.0 to Boost 1.46.0

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 3 years ago by neilgroves

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

  • Status changed from assigned to closed
  • Resolution set to fixed
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.