6 Sep
2011
6 Sep
'11
11:13 a.m.
El 06/09/2011 1:17, Daniel James escribió:
2011/9/5 Ion Gaztañaga
: 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
#include<string> int main() { boost::container::vectorstd::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