Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86731 - trunk/boost/multi_index/detail
From: joaquin_at_[hidden]
Date: 2013-11-16 16:39:02


Author: joaquin
Date: 2013-11-16 16:39:01 EST (Sat, 16 Nov 2013)
New Revision: 86731
URL: http://svn.boost.org/trac/boost/changeset/86731

Log:
(hopefully) fixed use of sizeof on an incomplete type

Text files modified:
   trunk/boost/multi_index/detail/bucket_array.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/multi_index/detail/bucket_array.hpp
==============================================================================
--- trunk/boost/multi_index/detail/bucket_array.hpp Sat Nov 16 16:23:34 2013 (r86730)
+++ trunk/boost/multi_index/detail/bucket_array.hpp 2013-11-16 16:39:01 EST (Sat, 16 Nov 2013) (r86731)
@@ -115,8 +115,8 @@
 
 template<bool _>
 const std::size_t bucket_array_base<_>::sizes_length=
- sizeof(bucket_array_base<true>::sizes)/
- sizeof(bucket_array_base<true>::sizes[0]);
+ sizeof(bucket_array_base<_>::sizes)/
+ sizeof(bucket_array_base<_>::sizes[0]);
 
 #undef BOOST_MULTI_INDEX_BA_POSITION_CASE
 #undef BOOST_MULTI_INDEX_BA_SIZES


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk