Boost C++ Libraries: Ticket #7918: Nonsense ternary operator in thread::get_id() when BOOST_THREAD_PLATFORM_PTHREAD but not BOOST_THREAD_PROVIDES_BASIC_THREAD_ID https://svn.boost.org/trac10/ticket/7918 <p> Perhaps this code can be deleted? </p> <p> It's in a couple of places: </p> <pre class="wiki">return (local_thread_info? id(local_thread_info) id()); </pre><pre class="wiki">return (thread_info?thread::id(thread_info-&gt;shared_from_this()):thread::id()); </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7918 Trac 1.4.3 viboes Sat, 26 Jan 2013 15:13:44 GMT status, component changed; owner set https://svn.boost.org/trac10/ticket/7918#comment:1 https://svn.boost.org/trac10/ticket/7918#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">thread</span> </li> </ul> <p> Yes. it should be deleted for 1.54. </p> <p> 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? </p> Ticket viboes Sun, 27 Jan 2013 13:33:45 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7918#comment:2 https://svn.boost.org/trac10/ticket/7918#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/82635" title="Thread: Fix #7918">[82635]</a>) Thread: Fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7918" title="#7918: Bugs: Nonsense ternary operator in thread::get_id() when ... (closed: fixed)">#7918</a> </p> Ticket