Hi Mathias, Rather than have an #if #else #endif block with two implementations I'd rather stick with a single implementation.
If memory templates are out of the question could we use an std::algorithm to copy the contents? It's a very long while since I've done this but use of foreach and a back inserter would seem like the thing to try. I'll dig open my STL book and have a look at this. Thoughts? Robert. On Wed, Oct 8, 2008 at 9:03 AM, Mathias Fröhlich <[EMAIL PROTECTED]> wrote: > > Hi, > > The ramining compile fix to avoid member templates for the sun compiler: > The problem is that a std::vector<>::insert() is called with deque iterators > in the argument which is deninitely a member template function in > std::vector. I did not find something from the algorithms header that covers > what we need at this place. > The define used in this patch is the define used in the c++ header to > configure if the member templates are accessible or not. So this is the > primary decision if this insert method is available or not. > > Other possible changes to fix that problem would be to either change the deque > or the vector type to match the other type involved in the insert operation. > But due to the usage pattern using indexed accesses and push_back, push_front > operations it is unclear if this is possible. And if it is it requires > algorithmical changes. > Also, in the end the vertices are assigned to a Vec3Array, which is in turn > such a member template that is not available without some tricks ... > > Based on rev 9007. > > Comments? > > Mathias Fröhlich > > -- > Dr. Mathias Fröhlich, science + computing ag, Software Solutions > Hagellocher Weg 71-75, D-72070 Tuebingen, Germany > Phone: +49 7071 9457-268, Fax: +49 7071 9457-511 > -- > 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 > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
