[osg-users] PolytopeVisitor's sample
François Cami
fcami at fedoraproject.org
Wed Apr 6 01:18:14 PDT 2016
Hello,
On Wed, Apr 6, 2016 at 10:00 AM, yusuke morikawa <y.morikawa at sanei.co.jp> 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
More information about the osg-users
mailing list