
The ability to test for a conversion is liable to result in ODR problems. On the other hand, the errors are pretty horrendous right now.
I am not sure how ODR applies here. But I guess a compile time check will
have the same limitations are the conversion itself. After all in the same
way the constructor
quantity1(q2) is defined, so should be an hypothetical
is_convertible
This is a fairly common problem. Could you file a trac ticket. I'll try to make the error more readable.
sure, https://svn.boost.org/trac/boost/ticket/4988
A better error message will help a lot in this and other contexts but think
it is a different issue with respect to the is_convertible