geode icon indicating copy to clipboard operation
geode copied to clipboard

Add modify_cast into geode::cast

Open nytelytee opened this issue 2 months ago • 4 comments
trafficstars

Allows you to repeatedly apply static_cast in the order the casts are applied in.

So, geode::cast::chain_cast<X, Y, Z>(obj) is equivalent to static_cast<Z>(static_cast<Y>(static_cast<X>(obj))).

Additionally, rarely useful, but geode::cast::chain_cast<>(obj) just returns obj.

nytelytee avatar Sep 11 '25 00:09 nytelytee