senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. こあ (core@darui.work)'s status on Monday, 20-Sep-2021 01:35:36 JST こあ こあ

    https://www.reddit.com/r/cpp/comments/jvg7t8/never_downcast_with_c_style_casts/

    > The C Style cast performs a reinterpret_cast<Derived*>.> Ultimately what happens is the function at vtable address 0 of the second vtable gets called instead of address 0 of the first vtable.

    C-style cast で downcast すると(基底クラスが仮想関数を持っている場合)vtable がぶっ壊れる、当たり前

    In conversation Monday, 20-Sep-2021 01:35:36 JST from darui.work permalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: external-preview.redd.it
      Never Downcast with C Style Casts
      from Duncans_pumpkin
      21 votes and 35 comments so far on Reddit

    Feeds

    • Activity Streams
    • RSS 2.0
    • Atom
    • Help
    • About
    • FAQ
    • TOS
    • Privacy
    • Source
    • Version
    • Contact

    senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

    Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.