Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualParadigm Shifter

Posted 01 May 2013 - 02:02 PM

You don't need a cast for that... although it does slice the object if you pass or copy by value (EDIT: And virtual functions won't work if you cast a Derived to a Base class). In C you would need a cast which is why well written C++ requires less casting shenanigans than C.


#1Paradigm Shifter

Posted 01 May 2013 - 02:00 PM

You don't need a cast for that... although it does slice the object if you pass or copy by value. In C you would need a cast which is why well written C++ requires less casting shenanigans than C.


PARTNERS