Subject: [Boost-bugs] [Boost C++ Libraries] #5419: assign fails with C++0x compilers
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-04-05 09:30:45
#5419: assign fails with C++0x compilers
------------------------------+---------------------------------------------
Reporter: chrisj | Owner: nesotto
Type: Bugs | Status: new
Milestone: To Be Determined | Component: assign
Version: Boost 1.47.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
Assign is failing to compile with a clang and libc++ when in C++0x mode. I
believe this is because C++0x has two operator= for each container, for
example vector has:
operator=(const std::vector<T>&)
operator=(initialiser_list<T>)
And the technique of using (from list_of.hpp)
template< class Container >
operator Container() const
{
return this-> BOOST_NESTED_TEMPLATE
convert_to_container<Container>();
}
Can't choose between these two options.
I don't know the best, or really any good way, to fix this unfortunately.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5419> 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:06 UTC