Boost logo

Boost Users :

From: todd (todd_at_[hidden])
Date: 2004-02-07 16:37:45


On Sun, 08 Feb 2004 01:28:38 +0000, Steve Folly wrote
> The problem is to be able to chain then_ and else_ together, I have
> to return a plain pointer because the if_ statement itself doesn't
> know about it's shared pointer. So now, the compiler complains that
> can't implicitly convert a plain if_statement pointer into a shared
> pointer. And even if it could, I don't have the original shared
> pointer to hand.

It looks like you can solve this by using intrusive pointers instead of shared
pointers. The compiler can implicitly convert normal pointers into intrusive ones.

Todd


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net