[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-commit] /srv/bzr/gnash/trunk r10284: libcore/as_value.{cpp, h
From: |
strk |
Subject: |
Re: [Gnash-commit] /srv/bzr/gnash/trunk r10284: libcore/as_value.{cpp, h}: Increase type safety by using templates to |
Date: |
Mon, 17 Nov 2008 11:40:33 +0100 |
On Sat, Nov 15, 2008 at 08:49:41PM +0100, Bastiaan Jacques wrote:
> ------------------------------------------------------------
> revno: 10284
> committer: Bastiaan Jacques <address@hidden>
> branch nick: trunk
> timestamp: Sat 2008-11-15 20:49:41 +0100
> message:
> libcore/as_value.{cpp,h}: Increase type safety by using templates to
> prevent implicit conversions to bool. This allows us to declare a
> single numeric constructor. As a side-effect, the compiler will
> refuse to compile as_value(NULL) or as_value(0) until you resolve
> the ambiguity.
Just a note: avm2 has an "int" value IIRC.
error: call of overloaded 'as_value(int)' is ambiguous
^^ so this might need to change.
--strk;