[cfe-dev] better way to test for explicit C++ constructor?

Eli Friedman eli.friedman at gmail.com
Tue Dec 11 15:30:06 PST 2012


On Tue, Dec 11, 2012 at 2:41 PM, Kim Gräsman <kim.grasman at gmail.com> wrote:
> Hi Peeter,
>
> Glad it worked, but I wonder if you could get away with just
> hasUserDeclaredConstructor? As far as I understand it, that should be the
> same as what you're doing below, if you're only interested in existence.
>
> I would trust Eli more than I trust myself, though, so take this with a
> grain of salt.

I'm rather confused by this whole thread; for the given analysis, I
don't see how any constructor other than the one actually used to
construct the global in question matters.

-Eli




More information about the cfe-dev mailing list