Removing const should work... inline Dest BitCast(Source*& source) On Wed, Aug 18, 2010 at 11:45 AM, <[email protected]> wrote:
> /home/jill/projects/node/deps/v8/src/factory.h:343: error: call of > overloaded `BitCast(v8::internal::Object**)' is ambiguous > /home/jill/projects/node/deps/v8/src/utils.h:732: note: candidates > are: Dest v8::internal::BitCast(const Source&) [with Dest = > v8::internal::String**, Source = v8::internal::Object**] > /home/jill/projects/node/deps/v8/src/utils.h:743: note: > Dest v8::internal::BitCast(Source* const&) [with Dest = > v8::internal::String**, Source = v8::internal::Object*] > /home/jill/projects/node/deps/v8/src/factory.h: In static member > function `static v8::internal::Handle<v8::internal::String> > v8::internal::Factory::number_symbol()': > > > Old versions of gcc (e.g. 3.4.3) cannot differentiate between > > > template <class Dest, class Source> > inline Dest BitCast(const Source& source) > > and > > template <class Dest, class Source> > inline Dest BitCast(Source* const & source) > > > This bug appeared in r5237 > > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
