33
Gxost
6y

auto water = new Water();
auto wine = reinterpret_cast<Wine>(water);
// C++. Miracles happen

Comments
  • 6
    There should be a dangling pointer here somewhere 🤔
  • 2
    Jesus!
  • 2
    C++ ❤️❤️❤️
  • 0
    Piss off with that shit. Had an exam on C++ today and my teacher loves smart pointers and these fucked up casts. I didn't went bad or anything, easy peasy but hell why do such kind of things exist? For fucks sake all of this is weird ass overengineered bullshit.

    But count me in on that wine dude 🍷
  • 1
    @Electrux @shivayl good 'ol plain C ❤❤❤
  • 0
    why did you use new again?
  • 0
    @nitwhiz c++ is just pretty strict when it comes to type safety, thats why
Add Comment