Hi Colin,

> to reduce compile time dependencies, I prefer using forward
> delcarations instead of #includes, where possible.  This doesn't seem
> to work with osg::ref_ptr<>, which needs complete type informations.
> 
> Is there a workaround to use ref_ptrs and as few include-files as
> possible?

This should work:

namespace osg
{
   template <typename T> class ref_ptr;
};



Greetings,
Daniel

-- 
                                                                                
                                                           
 Daniel Trstenjak         Tel   : +49 (0)7071-9457-264
 science + computing ag   FAX   : +49 (0)7071-9457-511
 Hagellocher Weg 73       mailto: [email protected]
 D-72070 Tübingen         WWW   : http://www.science-computing.de/              
                                                        
-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier, 
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Michel Lepert
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to