Is it intentional that the following code does not produce an error when compiled?
#include <boost/safe_numerics/safe_integer.hpp>
#include <type_traits>
#include <string>
static_assert(std::is_convertible_v<boost::safe_numerics::safe<int>, std::string>);
It seems wrong, but maybe there is a reason for it?
I'm trying to track down a (to me) relatively obscure problem elsewhere, and I think this may be at least related to, if not the cause of the problems I'm seeing. I checked the two most recent versions of clang and gcc and got the same behavior in all cases.