
8 Jun
2014
8 Jun
'14
12:07 p.m.
Peter Dimov wrote:
cast.hpp probably also needs to die, the polymorphic casts going into their own header. This will be post-release because it will break code, though.
Actually it doesn't need to be a breaking change. You can create a new polymorphic_cast.hpp in core and #include that in cast.hpp, and move that cast.hpp (which now only contains two includes) to numeric. Then you can deprecate cast.hpp with a pragma warning and port any uses of it to include polymorphic_cast.hpp instead. Non breaking change. Thanks, Steve.