Boost C++ Libraries: Ticket #4021: bug in tree_algorithms.hpp https://svn.boost.org/trac10/ticket/4021 <p> Whilst compiling boost::intrusive::set, my compiler complained of an error : </p> <p> "../boost_1_42_0/boost/intrusive/detail/tree_algorithms.hpp", line 1502: error: identifier "size_t" is undefined </p> <p> which is : </p> <pre class="wiki">1502 std::size_t leaf_nodes = count + 1 - ((size_t) 1 &lt;&lt; floor_log2 (count + 1)); </pre><p> which is merely missing the std:: prefix on the second size_t and is fixed to look like this : </p> <pre class="wiki">1502 std::size_t leaf_nodes = count + 1 - ((std::size_t) 1 &lt;&lt; floor_log2 (count + 1)); </pre><p> In trunk this is now on line 1504. </p> <p> I hope that helps, </p> <p> once again thanks, </p> <p> Peter </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4021 Trac 1.4.3 Steven Watanabe Tue, 16 Mar 2010 20:31:35 GMT <link>https://svn.boost.org/trac10/ticket/4021#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4021#comment:1</guid> <description> <p> Ion, since this is a simple and obvious fix, I'm taking care of it now. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Tue, 16 Mar 2010 21:00:28 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4021#comment:2 https://svn.boost.org/trac10/ticket/4021#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</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/60656" title="Quality size_t with std::. Fixes #4021">[60656]</a>) Quality size_t with std::. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4021" title="#4021: Patches: bug in tree_algorithms.hpp (closed: fixed)">#4021</a> </p> Ticket Ion Gaztañaga Tue, 16 Mar 2010 21:08:53 GMT <link>https://svn.boost.org/trac10/ticket/4021#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4021#comment:3</guid> <description> <p> Thanks! </p> </description> <category>Ticket</category> </item> </channel> </rss>