Class template argument deduction from constructor call

Juanjo Alvarez fake at fakeemail.com
Fri Oct 29 17:53:02 PDT 2010


On Wed, 27 Oct 2010 21:26:21 +0100, div0 <div0 at sourceforge.net> wrote:
>         this(T t) {
> 	this(string x) {
> 	this(int x) {


> auto	f0 = new Foo("wtf?");
> auto	f1 = new Foo(42);

Best match?


More information about the Digitalmars-d-learn mailing list