Opened 11 years ago

Closed 11 years ago

#6612 closed Bugs (fixed)

Boost thread debug std::cerr << __LINE__ in futures.hpp

Reported by: ramon.casellas@… Owned by: viboes
Milestone: Boost 1.50.0 Component: thread
Version: Boost Development Trunk Severity: Cosmetic
Keywords: thread __LINE__ futures std::cerr Cc:

Description

Dear Anthony,

Thank you for your work on boost threads. An aesthetic issue: Using boost trunk, I get spurious debug traces to std::cerr. The cause is the file include/boost/thread/futures.hpp line 1339 etc.

std::cout<< __LINE__ << " " << int(future_obtained) << std::endl;

A simple program triggers it:

boost::promise<tuple> prom;
boost::unique_future<tuple> fut = prom.get_future();
prom.set_value(std::move(tup));
futures.push_back(boost::shared_future<tuple>(std::move(fut)));

Thanks in advance, R

Change History (2)

comment:1 by viboes, 11 years ago

Owner: changed from Anthony Williams to viboes
Status: newassigned

Committed revision 77224.

comment:2 by viboes, 11 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.