Hi, On 13/04/10 9:12 , mas oug wrote: > Just curious, I noticed that in a lot of the code, we use stuff like > "osg::someFunctio()" and etc... > Could we use a namespace "using namespace osg;" to avoid having to write > "osg::" every single time?
Of course you can use a 'using namespace osg' in the implementation files on your own project if that makes it more comfortable for you. Just don't put them in a header file as this is a no-no, it defeats the purpose of namespaces in the first place. Like Ben Cain I tend to not do that since it makes the code easier to read since it's obvious where a class/function comes from. Cheers, /ulrich _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

