[C++ PATCH] Fix comment
Nathan Sidwell
nathan@acm.org
Wed Oct 4 14:12:00 GMT 2017
In answering a question about passing non-trivial types through ..., I
discovered a misleading comment. It is NOT just like a value parm,
because we don't locally copy it.
class X { ..,non-poddy... };
void Foo (X, ...);
void bin (X &p)
{
Foo (p, p);
}
Only the first arg to Foo goes via a copy-constructor.
Fixed thusly and applied.
nathan
--
Nathan Sidwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pbr.diff
Type: text/x-patch
Size: 807 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20171004/0abe1f1d/attachment.bin>
More information about the Gcc-patches
mailing list