Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#4021 closed Patches (fixed)

bug in tree_algorithms.hpp

Reported by: peter.myerscough-jackopson@… 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 Steven Watanabe, 13 years ago

Ion, since this is a simple and obvious fix, I'm taking care of it now.

comment:2 by Steven Watanabe, 13 years ago

Resolution: fixed
Status: newclosed

(In [60656]) Quality size_t with std::. Fixes #4021

comment:3 by Ion Gaztañaga, 13 years ago

Thanks!

Note: See TracTickets for help on using tickets.