Opened 12 years ago

Closed 12 years ago

#4562 closed Bugs (duplicate)

Thread::id method fails to compile on msvc8

Reported by: Reto Grieder <retogrieder@…> Owned by: Anthony Williams
Milestone: To Be Determined Component: thread
Version: Boost 1.44.0 Severity: Problem
Keywords: thread const Cc:

Description

Ticket #3761 introduced a fix for a template friend operator in thread::id.

The proposed solution, implemented in r62722, however lacks the "const" qualifier for the print() method.
The result is Visual Studio 8 complaining about it, since the argument type in the "<<" operator is "const thread::id&".

I have not tested this on any other compiler, but the problem is pretty obious and trivial to fix.

Attachments (1)

thread.hpp (14.3 KB ) - added by anonymous 12 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by Reto Grieder <retogrieder@…>, 12 years ago

Milestone: Boost-1.45.0To Be Determined
Summary: Thread::id function fails to compile on msvc8Thread::id method fails to compile on msvc8

comment:2 by Reto Grieder <retogrieder@…>, 12 years ago

A new ticket the same problem has been created a few hours later: #4565

comment:3 by Anthony Williams, 12 years ago

Resolution: duplicate
Status: newclosed

Fixed. Duplicate of #4565

by anonymous, 12 years ago

Attachment: thread.hpp added
Note: See TracTickets for help on using tickets.