Hello Michael,

On 04/11/2011 12:03 PM, Michael Babcock wrote:
> Here's a small patch to allow OpenSG2 to compile with gcc 4.6. It also
> allows using a newer boost (which has filesystem v3 as default) and adds
> a couple missing compatibility wrappers for GeoPositions and GeoNormals.

many thanks for the patch. Most of the issues don't seem to be gcc 4.6 
specific, but more about compiling with the various OSGCOMPAT_* options 
enabled (which I admittedly rarely do). Anyway, I've applied the patch.

> The OpenSG headers, at least, also almost compile with g++-4.6
> -std=c++0x, except for one error:
>
> /mnt/hdpsbin/dev/OpenSG-2.0/include/OpenSG/OSGFieldContainer.inl: In
> function 'ContainerPtr OSG::convertToCurrentAspect(ContainerPtr) [with
> ContainerPtr = OSG::MemoryObject*]':
> /mnt/hdpsbin/dev/OpenSG-2.0/include/OpenSG/OSGMemObjPointerMFieldCommon.inl:504:66:
> instantiated from here
> /mnt/hdpsbin/dev/OpenSG-2.0/include/OpenSG/OSGFieldContainer.inl:528:58:
> error: 'class OSG::MemoryObject' has no member named 'getAspectPtr'
>
> Where it seems to be passing a MemoryObject* where a FieldContainer* is
> expected.

this one, should also not be specific to gcc 4.6 or c++0x mode, but I'm 
not sure what the correct fix is. MemoryObjects don't have the multi 
aspect copies FieldContainers have, so there is no meaningful way to get 
the aspect local copy of one.
I'm guessing the MemObj fields would share the MemoryObject across 
aspects. Gerrit, what's the intended semantics here?

Thanks again for the patch.

        Cheers,
                Carsten

------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to