Hi Olaf, Thanks for the feedback. I did not know that C++11 features in VS2010 were buggy. My main concern is to use the most convenient features of C++11 (mainly: "auto", range-based for-loops, lambdas, smart-pointers, unordered-maps) to ease coding. It is so easy to use "auto", sometimes I loose myself and do not realize that I use it even in glsl-shader codes until I get shader-compiler errors :)
I see your point: I will dig deeper into this issue and most probably end up sticking to your advice. Olaf Razzoli wrote: > Hi Deniz > > I would suggest not to rely on the implementation of C++11 features on Visual > C++ 2010. They are a few, not very close to the standard and quite buggy. If > you want to follow the C++11 path, do as Judson says: install Visual C++2013. > In my opinion there are no reasons to target older compiler if you want to > use features from C++11, being a very recent standard. If you want to support > old compilers, just don't use C++11 or provide alternative code. > > Olaf > > > > -----Original Message----- > From: [mailto:] On Behalf Of deniz diktas > Sent: 26 November 2013 19:15 > To: > Subject: Re: C++11 with OSG > > Hi Judson, > > Thanks for the feedback. Well I thought it is always best to stick to the > oldest compiler supporting basic C+11 features, which is vs2010. Even if I am > able to support older compilers, the code should be compiled in those older > ones, which means I cannot use say range-based for-loops etc. because older > ones cannot compile it. And if I compile my engine code in vs2013 and someone > tries to use it in vs2010, would that not be a problem? Am I missing > something here? > > > > Judson Weissert wrote: > > > Hi deniz, > > > > I am not sure how you came to that conclusion. I suggest upgrading to > > VS2013 as soon as possible, and test your application with it. You can > > set policy to support older, non-c++11 compliant compilers if you > > wish, but that decision should not prevent you from moving to new > > compilers in general. > > > > Regards, > > > > Judson > > > > On 11/22/2013 2:34 PM, deniz diktas wrote: > > > > > > > Thank you guys, > > > > > > This is helpful, I can see it is best to stick to vs2010 and use boost > > > for missing c++11 features, which I have been doing in my regular work > > > anyway. Good to see we are on the same page here. > > > > > > Any other opinions or suggestions are welcome. > > > > > > -deniz > > > > > > ------------------ > > > Read this topic online here: > > > http://forum.openscenegraph.org/viewtopic.php?p=57406#57406 > > > > > > > > > > > > > > > > > > _______________________________________________ > > > osg-users mailing list > > > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegrap > > > h.org > > > > > > > > > > _______________________________________________ > > osg-users mailing list > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph. > > org > > > > ------------------ > > Post generated by Mail2Forum > > > > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=57452#57452 > > > > > > _______________________________________________ > osg-users mailing list > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ > osg-users mailing list > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > ------------------ > Post generated by Mail2Forum ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=57468#57468 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

