Opened 10 years ago

Closed 10 years ago

#7918 closed Bugs (fixed)

Nonsense ternary operator in thread::get_id() when BOOST_THREAD_PLATFORM_PTHREAD but not BOOST_THREAD_PROVIDES_BASIC_THREAD_ID

Reported by: anonymous Owned by: viboes
Milestone: To Be Determined Component: thread
Version: Boost 1.52.0 Severity: Problem
Keywords: Cc:

Description

Perhaps this code can be deleted?

It's in a couple of places:

return (local_thread_info? id(local_thread_info) id());
return (thread_info?thread::id(thread_info->shared_from_this()):thread::id());

Change History (2)

comment:1 by viboes, 10 years ago

Component: Nonethread
Owner: set to viboes
Status: newassigned

Yes. it should be deleted for 1.54.

What do you mean by Nonsense. I admit that in the fisrt case ther eis a missing ':', but I don't understand why the second case is a nonsense. Please could you clarify?

comment:2 by viboes, 10 years ago

Resolution: fixed
Status: assignedclosed

(In [82635]) Thread: Fix #7918

Note: See TracTickets for help on using tickets.