Re: non-const reference to tem****ary derived from pure virtual Base
by =?UTF-8?B?RXJpayBXaWtzdHLDtm0=?= <Erik-wikstrom@[EMAIL PROTECTED]
>
May 6, 2008 at 04:29 PM
On 2008-05-06 16:41, reppisch wrote:
> Hi Ng,
>
> besides that this style may be asking for trouble i'm faced with a
> unexpected gcc behaviour. Tested with gcc 3.3.3.
> On M$ .Net this compiles just fine.
>
> I'm trying to make a non-const reference to a tem****ary object. The
> object is derived from a pure virtual base, so the compiler can't create
> a copy of base-type.
Are you sure VS.NET allowed that? If that is the case you really should
check the options you provide to the compiler because making a non-const
reference to a tem****ary is forbidden by the standard.
--
Erik Wikström