Explicit-ness

Thiago Macieira thiago at kde.org
Wed Aug 30 23:59:42 BST 2006


Allen Winter wrote:
> - constructor must be public
> - constructor must have exactly 1 required argument
> - constructor may have 1 or more optional arguments
> - a class may have more than constructor declared 'explicit'
> - copy constructors should not be declared 'explicit'
> - templates ignored

One more rule:
- constructor is not intentionally implicit

I have no idea how to detect that last one. But it is a valid use-case.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060831/72427b5d/attachment.sig>


More information about the kde-core-devel mailing list