Julien DELACROIX e130cd860c boost::polymorphic_downcast only supports raw pointer cast, which is a gap compared to static_cast.
To make it clear:
       Base* base = new Base();

       static_cast<Derived*>(base)                 ===> OK
       static_cast<Derived&>(*base)                ===> OK

       boost::polymorphic_downcast<Derived*>(base)  ===> OK
       boost::polymorphic_downcast<Derived&>(*base) ===> IMPOSSIBLE

    boost::polymorphic_downcast being a kind of "debug-safe version" of
    static_cast, it should provide the same capabilities.

    This patch extend boost::polymorphic_downcast to support references just
    like static_cast does.
    This is achieved by introducing a partial specialization for references.
    Unit tests have been updated accordingly.
2019-12-09 08:51:10 +01:00
2019-01-30 23:13:06 +03:00
2019-06-29 11:28:49 +03:00
2016-12-25 23:00:40 +03:00

Boost.Conversion

Boost.Conversion is one of the Boost C++ Libraries. This library improves program safety and clarity by performing otherwise messy conversions.

Test results

@ Build Tests coverage More info
Develop branch: Build Status Build status Coverage Status details...
Master branch: Build Status Build status Coverage Status details...

Open Issues

License

Distributed under the Boost Software License, Version 1.0.

S
Description
Boost.org conversion module
Readme 1.2 MiB
Languages
C++ 91.9%
CMake 5%
HTML 3.1%