[sldev] Question on Overuse of virtual in C++
Nicholaz Beresford
nicholaz at blueflash.cc
Fri Jul 6 07:47:30 PDT 2007
Dirk,
did you find more of those virtualy in performance senstitiv
areas of the viewer?
Nick
Dirk Moerenhout wrote:
> For starters: I'm no C++ guru so I might be missing something. Feel
> free to enlighten me if so ;-)
>
> My question is the following:
> Is there a purpose to declare a function virtual if you've no
> intention to overload it? As an example I'd like to take LLTreeNode.
>
> In LLTreeNode we've "virtual LLTreeListener<T>* getListener(U32 index)
> const { return mListeners[index]; }"
More information about the SLDev
mailing list