[PATCH] Remove 'explicit' keyword from constructors with multiple (non-default) arguments.

James Dennett jdennett at googlers.com
Sun Jun 22 00:13:02 PDT 2014


On Sun, Jun 22, 2014 at 3:00 AM, David Blaikie <dblaikie at gmail.com> wrote:

> Fwiw, if I'm not mistaken, explicit on more - than - one - arg actors does
> have some meaning in c++11. It means you can't construct from a braced init
> list.
>

IIRC: More specifically, you can't use copy-list-initialization; direct
initialization from a braced init list is allowed for an explicit
constructor.

The essence is that it takes some thought before removing explicit from a
constructor, more so than in C++98.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140622/e22ccda3/attachment.html>


More information about the cfe-commits mailing list