
El 06/09/2011 1:17, Daniel James escribió:
2011/9/5 Ion Gaztañaga<igaztanaga@gmail.com>:
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:
it's a bit more complicated than that, there was no overload for non-class convertible types to class in the insertion macro. I'll fix this ASAP. Ion