Thanks Laurens, I've merged your changes plus add a "return *this;" to the
assignment operators to prevent these new methods from generating warnings
under gcc.  Changes now merged and submitted to svn/trunk. Cheers, Robert.

On Mon, Mar 8, 2010 at 2:10 PM, Laurens Voerman <[email protected]> wrote:

> Hi Robert,
>
> my compiler (VC Express 9) gives some warnings (see below) about not being
> able to generate an assignment operator. As those assignment operators are
> not used and problably should never be used, I solved this by creating an
> private (empty) assingment operator.
>
> Regards,
> Laurens.
>
> attached files in zip:
> OpenSceneGraph\src\osgUtil\tristripper\include\detail\graph_array.h
> OpenSceneGraph\src\osgUtil\tristripper\include\detail\policy.h
>
>
>
>  ------ Build started: Project: osgUtil, Configuration: Release Win32
>> ------
>> Compiling...
>> Version.cpp
>> UpdateVisitor.cpp
>> TriStripVisitor.cpp
>> connectivity_graph.cpp
>> policy.cpp
>> L:\osg\osgsvn\OpenSceneGraph\src\osgUtil\tristripper\include\detail/policy.h(41)
>> : warning C4512: 'triangle_stripper::detail::policy' : assignment operator
>> could not be generated
>>
>>  
>> L:\osg\osgsvn\OpenSceneGraph\src\osgUtil\tristripper\include\detail/policy.h(27)
>> : see declaration of 'triangle_stripper::detail::policy'
>> tri_stripper.cpp
>> l:\osg\osgsvn\openscenegraph\src\osgutil\tristripper\include\detail\graph_array.h(106)
>> : warning C4512: 'triangle_stripper::detail::graph_array<nodetype>::node' :
>> assignment operator could not be generated
>>        with
>>        [
>>            nodetype=triangle_stripper::detail::triangle
>>        ]
>>
>>  
>> l:\osg\osgsvn\openscenegraph\src\osgutil\tristripper\include\detail\graph_array.h(73)
>> : see declaration of
>> 'triangle_stripper::detail::graph_array<nodetype>::node'
>>        with
>>        [
>>            nodetype=triangle_stripper::detail::triangle
>>        ]
>>
>>  
>> ..\..\..\OpenSceneGraph\src\osgUtil\tristripper\src\connectivity_graph.cpp(63)
>> : see reference to class template instantiation
>> 'triangle_stripper::detail::graph_array<nodetype>::node' being compiled
>>        with
>>        [
>>            nodetype=triangle_stripper::detail::triangle
>>        ]
>> L:\osg\osgsvn\OpenSceneGraph\src\osgUtil\tristripper\include\detail/policy.h(41)
>> : warning C4512: 'triangle_stripper::detail::policy' : assignment operator
>> could not be generated
>>
>>  
>> L:\osg\osgsvn\OpenSceneGraph\src\osgUtil\tristripper\include\detail/policy.h(27)
>> : see declaration of 'triangle_stripper::detail::policy'
>> l:\osg\osgsvn\openscenegraph\src\osgutil\tristripper\include\detail\graph_array.h(106)
>> : warning C4512: 'triangle_stripper::detail::graph_array<nodetype>::node' :
>> assignment operator could not be generated
>>        with
>>        [
>>            nodetype=triangle_stripper::detail::triangle
>>        ]
>>
>>  
>> l:\osg\osgsvn\openscenegraph\src\osgutil\tristripper\include\detail\graph_array.h(73)
>> : see declaration of
>> 'triangle_stripper::detail::graph_array<nodetype>::node'
>>        with
>>        [
>>            nodetype=triangle_stripper::detail::triangle
>>        ]
>>
>>  ..\..\..\OpenSceneGraph\src\osgUtil\tristripper\src\tri_stripper.cpp(76) :
>> see reference to class template instantiation
>> 'triangle_stripper::detail::graph_array<nodetype>::node' being compiled
>>        with
>>        [
>>            nodetype=triangle_stripper::detail::triangle
>>        ]
>>
>
>
> _______________________________________________
> 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

Reply via email to