2008/11/21 Robert Osfield <[EMAIL PROTECTED]>:
> On Fri, Nov 21, 2008 at 2:00 PM, Simon Hammett
> <[EMAIL PROTECTED]> wrote:
>> I thought of that, but I'm sure Robert has said templates are a no goer for 
>> osg.
>
> It *all* depends upon the context.  The OSG uses templates everywhere
> already, many written by me, so templates certainly a non goer for the
> OSG.
>
> Templates aren't free in terms of code maintenance, build and
> portability.  One should use them where really are justified, but
> you'll always find me being cautious around templates to make sure
> they are justified because they can be one of the most problematic
> elements in porting and maintaining C++ across platforms.
>
> If Neil can come up with a scheme that ports well, is easy to maintain
> and provides a good solution for making the NodeVisitor more reusable
> then this may well be a good case for templates.   Without seeing any
> code I can't make any judgement call though.
>
> Robert.
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>

I see, ty for the info.

I think that doing a good template version of the visitor pattern would
require member templates though. Which I believe is where
most of the problems with portable template code crop up.

Is there an official list of supported compilers for osg?

-- 
The truth is out there. Usually in header files.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to