Modify

Opened 5 years ago

Closed 5 years ago

#7409 closed Bugs (fixed)

Dependencies not handled correctly

Reported by: s.d.c.west@… Owned by: Eric Niebler
Milestone: To Be Determined Component: accumulator
Version: Boost 1.52.0 Severity: Problem
Keywords: Cc: eric@…

Description

To test the dependency system of the Accumulators library, I tried adding an alternative implementation of the 'count' feature, which I called 'alt_count' (see attached file count.hpp which includes the alternative version). To express that alt_count defines the same feature as count, I included the following:

template<> struct feature_of<tag::alt_count>

: feature_of<tag::count>

{ };

I then ran a test program (attached), which should compute the mean of the numbers {1,2}, but returns -nan.

Attachments (2)

mean-test-trac.cpp (475 bytes) - added by anonymous 5 years ago.
count.hpp (3.0 KB) - added by anonymous 5 years ago.

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by anonymous

Attachment: mean-test-trac.cpp added

Changed 5 years ago by anonymous

Attachment: count.hpp added

comment:1 Changed 5 years ago by Eric Niebler

(In [80885]) fix long-standing dependency tracking bug, refs #7409

comment:2 Changed 5 years ago by Eric Niebler

Resolution: fixed
Status: newclosed

(In [80927]) accumulators: fix long-standing dependency tracking bug. merge [80826], [80885], [80888] from trunk. fixes #7409

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Eric Niebler.
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.