#4021 closed Patches (fixed)
bug in tree_algorithms.hpp
Reported by: | Owned by: | Ion Gaztañaga | |
---|---|---|---|
Milestone: | Boost 1.43.0 | Component: | intrusive |
Version: | Boost 1.42.0 | Severity: | Problem |
Keywords: | intrusive set | Cc: |
Description
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
Change History (3)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Ion, since this is a simple and obvious fix, I'm taking care of it now.