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.