From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2003-03-26 23:16:28
> I would suspect your compiler. This works as expected (e.g., no
> assertions; they both evaluate to true) with Borland C++ Builder 5.6
> and GCC 3.2 prerelease.
Some compilers have problems with template class' cast operators. gcc 3.x
had similar problems with template cast to reference type of template
classes. The bug was reported and confirmed. I guess if A::ptr was of a
non-template type the problem would not occur.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk