[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: passing temporary storage as a non-const parameter to a function
From: |
Ulrich Eckhardt |
Subject: |
Re: passing temporary storage as a non-const parameter to a function |
Date: |
Sun, 14 Nov 2004 13:07:49 +0100 |
User-agent: |
KNode/0.7.7 |
Andre Poenitz wrote:
> Ulrich Eckhardt <doomster@knuut.de> wrote:
>> Nothing to do with g++, just normal C++. Other than the solutions
>> already proposed, you can also const_cast the problem away.
>
> Are you sure this results in legal code?
Yes, but don't ask me to quote the relevant paragraphs of the standard. If
you want those, I'd suggest taking the matter to comp.lang.c++.moderated.
Uli
--
http://gcc.gnu.org/faq.html
http://parashift.com/c++-faq-lite/