union A {
    public:
    B b;
    inline operator B() const {
        return b;
    }
}
void doSomething(B& b){};
A a;
doSomething(a);
Getting "no matching function for call to" error using code similar to above. Can you not implicilty cast to reference like this?
Work around?