Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5419: assign fails with C++0x compilers
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-04-05 21:53:27
#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
Resolution: | Keywords:
-------------------------------+--------------------------------------------
Comment (by anonymous):
Hm. That could be problematic.
Since initializer lists only take on template argument, we should be able
to do the following:
replace
template< class Container >
operator Container() const
with
template< template<class,class> Container, class T, class A >
operator Container<T,A>() const
Furthermore, this only takes care of templates with two arguments like
standard sequence.
Therefore, we also need to add overloads with 3 and four arguments.
A bigger problem arises with something like boost::multi_index_container
which may have many template arguments ... hm ... maybe the C++11 solution
is to use variadic templates to cover all cases with more than one
template argument.
If you can make a patch and test it, I'd be happy to apply it.
regards
-Thorsten
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5419#comment:1> 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