Smart d-ptr in Plasma

Ivan Čukić ivan.cukic at kde.org
Thu Aug 22 11:39:39 UTC 2013


> Well, I can add one more. They use variadic templates which are not in the
> list of C++11 features which can be used unconditionally in
> plasma-framework. Can be spared if you loose the forwarded constructor
> arguments though.

The older MSVC (which I guess is the problem for including variadics) supports 
IIRC up to n (where n is as low as around 12 arguments). This needs to be 
tested though by someone who has that compiler.

Anyhow, the private class constructors rarely have more than one argument. So, 
we could support most use-cases by providing fwd constructors for up to, for 
example, 5 args.

(I just like them too much :) )

Cheerio,
Ivan

-- 
There are no such things as applied sciences, only applications of science.
  -- Louis Pasteur



More information about the Plasma-devel mailing list