[heap] Mix use of size_t and size_type

9 Mar
2015
9 Mar
'15
9:54 p.m.
Hi, While reading d_ary_heap.hpp from the heap library I was surprised to see a mix of size_t and size_type variables in an index computation (https://github.com/boostorg/heap/blob/master/include/boost/heap/d_ary_heap.h...): size_type last_child_index(size_type index) const { const size_t first_index = first_child_index(index); const size_type last_index = (std::min)(first_index + D - 1, size() - 1); return last_index; } Isn't this a typo? -- Matthias
3638
Age (days ago)
3638
Last active (days ago)
0 comments
1 participants
participants (1)
-
Matthias Meulien