Book a Demo

Author Topic: C++ cast operators  (Read 2298 times)

Rowen

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
C++ cast operators
« on: December 05, 2007, 05:27:03 am »
These appear to be handled correctly on reverse engineering. How do I set them up to generate the correct code?

eg:
operator float (){return (m_MyFloatAttribute);}

Note, there is no return value, not even a void place holder although the operator does, in fact, return a float.