mirror of
https://github.com/boostorg/multi_index.git
synced 2025-05-11 13:24:04 +00:00
std::initializer_list<T>::iterator --> const T* to cope with old versions of libstdc++
This commit is contained in:
parent
d0feaa8963
commit
c389bd462f
@ -1,6 +1,6 @@
|
|||||||
/* Multiply indexed container.
|
/* Multiply indexed container.
|
||||||
*
|
*
|
||||||
* Copyright 2003-2013 Joaquin M Lopez Munoz.
|
* Copyright 2003-2014 Joaquin M Lopez Munoz.
|
||||||
* Distributed under the Boost Software License, Version 1.0.
|
* Distributed under the Boost Software License, Version 1.0.
|
||||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
* http://www.boost.org/LICENSE_1_0.txt)
|
* http://www.boost.org/LICENSE_1_0.txt)
|
||||||
@ -241,7 +241,7 @@ public:
|
|||||||
{
|
{
|
||||||
BOOST_MULTI_INDEX_CHECK_INVARIANT;
|
BOOST_MULTI_INDEX_CHECK_INVARIANT;
|
||||||
BOOST_TRY{
|
BOOST_TRY{
|
||||||
typedef typename std::initializer_list<Value>::iterator init_iterator;
|
typedef const Value* init_iterator;
|
||||||
|
|
||||||
iterator hint=super::end();
|
iterator hint=super::end();
|
||||||
for(init_iterator first=list.begin(),last=list.end();
|
for(init_iterator first=list.begin(),last=list.end();
|
||||||
@ -330,7 +330,7 @@ public:
|
|||||||
std::initializer_list<Value> list)
|
std::initializer_list<Value> list)
|
||||||
{
|
{
|
||||||
BOOST_MULTI_INDEX_CHECK_INVARIANT;
|
BOOST_MULTI_INDEX_CHECK_INVARIANT;
|
||||||
typedef typename std::initializer_list<Value>::iterator init_iterator;
|
typedef const Value* init_iterator;
|
||||||
|
|
||||||
multi_index_container x(*this,detail::do_not_copy_elements_tag());
|
multi_index_container x(*this,detail::do_not_copy_elements_tag());
|
||||||
iterator hint=x.end();
|
iterator hint=x.end();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user