Subject: [Boost-bugs] [Boost C++ Libraries] #4021: bug in tree_algorithms.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-03-16 18:41:55
#4021: bug in tree_algorithms.hpp
---------------------------------------------------+------------------------
Reporter: peter.myerscough-jackopson@⦠| Owner: igaztanaga
Type: Patches | Status: new
Milestone: Boost 1.43.0 | Component: intrusive
Version: Boost 1.42.0 | Severity: Problem
Keywords: intrusive set |
---------------------------------------------------+------------------------
Whilst compiling boost::intrusive::set, my compiler complained of an error
:
"../boost_1_42_0/boost/intrusive/detail/tree_algorithms.hpp", line 1502:
error: identifier "size_t" is undefined
which is :
{{{
1502 std::size_t leaf_nodes = count + 1 - ((size_t) 1 << floor_log2
(count + 1));
}}}
which is merely missing the std:: prefix on the second size_t and is fixed
to look like this :
{{{
1502 std::size_t leaf_nodes = count + 1 - ((std::size_t) 1 <<
floor_log2 (count + 1));
}}}
In trunk this is now on line 1504.
I hope that helps,
once again thanks,
Peter
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4021> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC