Opened 14 years ago

Closed 14 years ago

#2587 closed Bugs (fixed)

Call to test_suite::remove fails to remove correct item

Reported by: Brad Larsen Owned by: Gennadiy Rozental
Milestone: Boost 1.38.0 Component: test
Version: Boost 1.36.0 Severity: Problem
Keywords: Cc:

Description

A small glitch...

file: /boost/test/impl/unit_test_suite.ipp

test_suite::remove function, line 157:

std::vector<test_unit_id>::iterator it = std::find( m_members.begin(), m_members.begin(), id );

The 2nd parameter in the std::find call should use .end, not .begin.

Change History (1)

comment:1 by Gennadiy Rozental, 14 years ago

Resolution: fixed
Status: newclosed

(In [50323]) bug in test_suite::remove Fixed. Fix #2587

Note: See TracTickets for help on using tickets.