![Timur Doumler on Twitter: "Here's a legit use for casting away constness + using C++17 std::as_const: const T& operator()(index_type i) const { return /*something*/; } T& operator()(index_type i) { // avoid duplication Timur Doumler on Twitter: "Here's a legit use for casting away constness + using C++17 std::as_const: const T& operator()(index_type i) const { return /*something*/; } T& operator()(index_type i) { // avoid duplication](https://pbs.twimg.com/media/D8DroepWwAINyHV.png)
Timur Doumler on Twitter: "Here's a legit use for casting away constness + using C++17 std::as_const: const T& operator()(index_type i) const { return /*something*/; } T& operator()(index_type i) { // avoid duplication
![Han Solo's Guide to C++ Casting. Clear your C++ cast concepts with Star… | by K.L. de Vries | Feb, 2023 | Better Programming Han Solo's Guide to C++ Casting. Clear your C++ cast concepts with Star… | by K.L. de Vries | Feb, 2023 | Better Programming](https://miro.medium.com/max/1400/1*1EBH5_8BwSqyNn0-AbnTlQ.png)
Han Solo's Guide to C++ Casting. Clear your C++ cast concepts with Star… | by K.L. de Vries | Feb, 2023 | Better Programming
![Pin attachment constructions: a-eye-and-hook pin const ruction, b-two... | Download Scientific Diagram Pin attachment constructions: a-eye-and-hook pin const ruction, b-two... | Download Scientific Diagram](https://www.researchgate.net/publication/325667703/figure/fig2/AS:705483899932672@1545211877164/Pin-attachment-constructions-a-eye-and-hook-pin-const-ruction-b-two-cast-lugs-each.png)
Pin attachment constructions: a-eye-and-hook pin const ruction, b-two... | Download Scientific Diagram
Cast from 'const void *' to 'double *' drops const qualifier · Issue #207 · core-plot/core-plot · GitHub
![omnet++ - Error with the message "Cannot cast (inet::physicallayer::Ieee80211DimensionalTransmission*) to type 'const inet::physicallayer::IScalarSignal *'" - Stack Overflow omnet++ - Error with the message "Cannot cast (inet::physicallayer::Ieee80211DimensionalTransmission*) to type 'const inet::physicallayer::IScalarSignal *'" - Stack Overflow](https://i.stack.imgur.com/zyjg4.png)
omnet++ - Error with the message "Cannot cast (inet::physicallayer::Ieee80211DimensionalTransmission*) to type 'const inet::physicallayer::IScalarSignal *'" - Stack Overflow
![casting - cast of Objective-C pointer type 'NSString *' to C pointer type 'CFStringRef' (aka 'const struct __CFString *') requires a bridged cast - Stack Overflow casting - cast of Objective-C pointer type 'NSString *' to C pointer type 'CFStringRef' (aka 'const struct __CFString *') requires a bridged cast - Stack Overflow](https://i.stack.imgur.com/FVBdB.png)