From: Dragan Milenkovic on 14 Jun 2010 18:19 Jesse Perla wrote: > On May 29, 7:39 pm, Mark Zaytsev <mark.zayt...(a)gmail.com> wrote: > >> When you pass function you >> a. pass pointer to standalone function -- no need to create excessive >> ref >> b. pass functor, which is usually stateless -- no need to create ref >> to 0-sized object > > Alas, my functors have a large size which is part of the problem. Would creating a reference counting functor that delegates to your existing overgrown functors help? -- Dragan [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ]
|
Pages: 1 Prev: Treating Foo<T>* as Foo<const T>* Next: How to test if a iterator is valid or not? |