Hello #cpp / #cplusplus Fediverse,
If I've got types struct foo and struct bar, which are unrelated by formal class inheritance, is there some way to define a conversion from struct foo * to struct bar * ?)
I can't attach a plain old conversion operator to a pointer type, even if I name it, and none of the C++ compilers that I tried thinks of invoking a reference conversion operator when what's supposed to be implicitly converted, and the expectant receptacle, are nominally pointers.
Is there a way?