|
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;
x.push_back("something");
}
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:
http://article.gmane.org/gmane.comp.lib.boost.devel/222236
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net