Boost logo

Boost Users :

Subject: Re: [Boost-users] [container] Initialization from transformed_range compilation error
From: Daniel James (dnljms_at_[hidden])
Date: 2011-09-05 19:17:09

2011/9/5 Ion Gaztañaga <igaztanaga_at_[hidden]>:
> Ok, I'll try to check what's wrong with Boost.Container.
> Thanks for the report

I don't know if this is related but some of your insertion functions
have problems with implicit conversions. This fails:

#include <boost/container/vector.hpp>
#include <string>

int main()
    boost::container::vector<std::string> x;

I think you possibly should use is_convertible for your SFINAE
functions rather than is_same, so that they're instantiated for
anything that has an implicit conversion to your argument. We
discussed this recently:

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at