C++ Logo

std-proposals

Advanced search

Re: [std-proposals] static_cast should never have been allowed to downcast

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Wed, 21 Jan 2026 13:27:12 +0000
> Lots of code exists that uses static_cast in its intended way and that have zero bugs with it.
> As such I don't think "deprecating" static_cast will ever happen.


I meant deprecating static_cast when it is used for downcasts. I don't
want to deprecate static_cast altogether for every purpose. Only for
downcasts.

Received on 2026-01-21 13:27:25