Modify

Ticket #4021 (closed Patches: fixed)

Opened 4 years ago

Last modified 4 years ago

bug in tree_algorithms.hpp

Reported by: peter.myerscough-jackopson@… Owned by: igaztanaga
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

Change History

comment:1 Changed 4 years ago by steven_watanabe

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

comment:2 Changed 4 years ago by steven_watanabe

  • Status changed from new to closed
  • Resolution set to fixed

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

comment:3 Changed 4 years ago by igaztanaga

Thanks!

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.