[osg-submissions] osg::Object::clone
Michael Platings
mplatings at pixelpower.com
Fri Jun 6 06:36:05 PDT 2008
Oops, I thought the return value was part of the signature of a method. Just tested it in VS 2005 and it does work. My bad, sorry!
-----Original Message-----
From: osg-submissions-bounces at lists.openscenegraph.org [mailto:osg-submissions-bounces at lists.openscenegraph.org] On Behalf Of Daniel Trstenjak
Sent: 06 June 2008 14:33
To: OpenSceneGraph Submissions
Subject: Re: [osg-submissions] osg::Object::clone
Hi Stephan,
On Fri, Jun 06, 2008 at 03:21:06PM +0200, Stephan Maximilian Huber wrote:
> To my knowledge, the code will fail because the c++compiler will call
> osg::Object::clone and not osg::Transform::clone because the function
> signatures differ (they return different types of objects).
The return value isn't part of the signature of a method. You can't overload a method by only changing the return value.
Greetings,
Daniel
--
Daniel Trstenjak Tel. +49 (0)7071-9457-264
science + computing ag FAX +49 (0)7071-9457-511
Hagellocher Weg 73 mailto: Daniel.Trstenjak at science-computing.de
D-72070 Tübingen WWW : http://www.science-computing.de/
--
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Florian Geyer, Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board:
Prof. Dr. Hanns Ruder
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196
_______________________________________________
osg-submissions mailing list
osg-submissions at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
______________________________________________________________________
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
More information about the osg-submissions
mailing list