Opened 14 years ago

#2833 new Feature Requests

extract result during initialization

Reported by: e_r Owned by: Eric Niebler
Milestone: Boost 1.39.0 Component: accumulator
Version: Boost 1.37.0 Severity: Problem
Keywords: Cc:

Description

This is a follow up to:

news://news.gmane.org:119/goeic6$q4t$1@ger.gmane.org

where I asked : I have an accumulator (a) that takes an initial value (x_), and another (b), whose initial value (x_) depends on that of (a). I would have thought that this is feasible because accumulator_set initializes (a) before (b), but apparently b.x_ is initialized with a garbage value.

Attachments (3)

accu_a.hpp (1.9 KB ) - added by anonymous 14 years ago.
accu_b.hpp (2.0 KB ) - added by anonymous 14 years ago.
example_temp_accu.cpp (1.9 KB ) - added by anonymous 14 years ago.

Download all attachments as: .zip

Change History (3)

by anonymous, 14 years ago

Attachment: accu_a.hpp added

by anonymous, 14 years ago

Attachment: accu_b.hpp added

by anonymous, 14 years ago

Attachment: example_temp_accu.cpp added
Note: See TracTickets for help on using tickets.