All you Mac OS X people: where do we now stand with this issue? From what I
understand from your posts it appears to me that this could be an issue with
the installation, but I'm not sure.
> The Subscriptor works fine, but the errors occur in the Assert
> (dynamic_cast<...>...) part. My "solution" (quotes necessary) was to
> replace the dynamic_cast with static_cast. This is not a real solution
> though, merely a work-around for already working code; we really have no
> idea the validity of the cast (if we did, the Assert would be
> unnecessary).... I don't really know what the underlying problem is, but
> the dynamic_cast's such as this one give problems on Mac OS 10.6. I'm
> definitely open to any other ideas.
As you mention, replacing the dynamic_cast by a static_cast defeats the
purpose of the assertion. That said, this is well-tested code, and so I would
not object to dropping the assertion, or only do so only on Mac OS X. So how
about this: we add
#ifdef SOME_MAGIC_THAT_IDENTIFIES_MAC_OS_X
...
#endif
around this place to make it invisible to you guys but keep it around for
everyone else?
The next question is what a useful SOME_MAGIC_THAT_IDENTIFIES_MAC_OS_X would
be? We use __APPLE__ in other places. Is it possible to make it a bit more
specific to the OS X or compiler version you are using?
Best
W.
--
-------------------------------------------------------------------------
Wolfgang Bangerth email: [email protected]
www: http://www.math.tamu.edu/~bangerth/
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii