[Qt-interest] About QScopedPointer
Thiago Macieira
thiago at kde.org
Fri May 13 15:31:52 CEST 2011
On Friday, 13 de May de 2011 12:07:34 Anton Chernov wrote:
> fund( &( d->data() ) );
>
> am i evil?
This sounds like a good idea, until you try to compile:
$ g++ -fsyntax-only -xc++ - <<EOF
int *foo(); void bar(void **); int main() { bar(&foo()); }
EOF
<stdin>: In function ‘int main()’:
<stdin>:1:54: error: lvalue required as unary ‘&’ operand
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
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: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110513/41695149/attachment.bin
More information about the Qt-interest-old
mailing list