Hello,

On Wed, Apr 6, 2016 at 10:00 AM, yusuke morikawa <[email protected]> wrote:
> Hi,François
>
> Thank you very much for your reply.
> However I failed to build your sample.
> The error happens on the line 259, and displays such as
> " error C2143: statement error: ',' is not in front of ':' .
> The problem line is
> Code:
> for ( osgUtil::PolytopeIntersector::Intersection intersection : intersections 
> )

IIRC, you need MSVC2012 at least for that to compile.
If you are using MSVC2010, change the for statement to:
for each ( osgUtil::PolytopeIntersector::Intersection intersection in
intersections )
or perhaps:
for each ( auto intersection in intersections )

I don't have any Win/VS machine to test on now.

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

Reply via email to