[Boost-bugs] [Boost C++ Libraries] #3076: [multi_index] assertion failure sorting an empty collection in VC10 Beta 1

Subject: [Boost-bugs] [Boost C++ Libraries] #3076: [multi_index] assertion failure sorting an empty collection in VC10 Beta 1
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-05-24 22:31:16


#3076: [multi_index] assertion failure sorting an empty collection in VC10 Beta 1
---------------------------------------------------------+------------------
 Reporter: Richard Webb <richard.webb_at_[hidden]> | Owner: joaquin
     Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: multi_index
  Version: Boost 1.38.0 | Severity: Problem
 Keywords: |
---------------------------------------------------------+------------------
 The Bimap 'test_bimap_sequenced' test is failing in VC10 beta due to an
 assertion failure (http://tinyurl.com/qwczko), but the actual problem
 seems to be in multi_index.

 When you run the sample:

 {{{
 using namespace boost::multi_index;

 typedef multi_index_container<
   std::string,
   indexed_by<
     random_access<>
>
> text_container;


 int _tmain(int argc, _TCHAR* argv[])
 {
         text_container tc;
         tc.sort();

         return 0;
 }
 }}}

 the call to std::copy on line 190 of rnd_index_ops.hpp passes NULL as the
 third parameter (&*buf).
 The VC10 version of copy asserts if the 3rd param is NULL, causing the
 failure.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3076>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC