On 15/12/14 00:28, Ehsan Akhgari wrote:
> Hi all,
> 
> In C++, if a constructor can be invoked with one argument (that is if it
> has 1 required and N>=0 optional arguments, or N>0 optional arguments),
> it provides an implicit conversion from the type of the first argument
> to the class's type.  This can sometimes produce surprising results, for
> example:

One less pitfall \o/

Thanks, Ehsan.

Cheers,
 David


-- 
David Rajchenbach-Teller, PhD
 Performance Team, Mozilla

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to