Opened 12 years ago

Closed 12 years ago

#4279 closed Feature Requests (wontfix)

boost value_initialized and memset

Reported by: anonymous Owned by: No-Maintainer
Milestone: Boost 1.43.0 Component: utility
Version: Boost 1.44.0 Severity: Optimization
Keywords: value_initialized Cc:

Description

There is a need for two version of this class.

First version is the same as current with addition of patch from tick #3869. Second version doesn't call to memset in any case.

The second version might not work with all cases but sometimes it is needed to guarantee that memset will not be called.

Change History (1)

comment:1 by Steven Watanabe, 12 years ago

Resolution: wontfix
Status: newclosed

Why do you need to /guarantee/ that memset won't be called? The only reason for calling memset is to work around compiler bugs. I see no reason for a class to silently do the wrong thing instead of taking a minor performance penalty.

Note: See TracTickets for help on using tickets.