Modify

Opened 7 years ago

Closed 7 years ago

Last modified 7 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

Attachments (0)

Change History (3)

comment:1 Changed 7 years ago by Steven Watanabe

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

comment:2 Changed 7 years ago by Steven Watanabe

Resolution: fixed
Status: newclosed

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

comment:3 Changed 7 years ago by Ion Gaztañaga

Thanks!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ion Gaztañaga.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.