Login
You're viewing the scl.zmb.cm public feed.
  • T045T
    Oct 15, 2024, 9:16 PM

    en.cppreference.com/w/cpp/memo

    > Obtains the actual address of the object or function arg, even in presence of overloaded operator&

    Operator overloading is a hell of a drug.
    Also, I can all but guarantee that *someone* is going to specialize std::addressof for their cursed custom type to *also* change the output of that.
    Whether this will be followed by std::actualaddressof or violence (or both), I do not know.

    Hat tip to @mcc for nudging me into the depths of the C++ standard

    💬 0🔄 0⭐ 0