jump to:all–mastodon–bluesky–lemmy–lobsters–dev–stack–wiki–rss–hn
wwebbit
view: | | |

Tech / Stack Overflow · hot matching “c++”

1 shown · updated 4m ago · read only
  1. What is the difference between `std::launder(ptr)` and `reinterpret_cast (reinterpret_cast (ptr))` in C++29? (stackoverflow.com)stack

    22 points by cpplearner in stackoverflow.com · 17h ago · stack comments

    In N5054, reinterpret_cast from integer to pointer is specified as ( [expr.reinterpret.cast] ): A value of integral type or enumeration type can be explicitly converted to a pointer. If the value is one that can be produced by converting one or more pointer values to an integral…
    filed under c++pointersc++29