[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-dev] how to handle hash_map

From: Jim Garrison
Subject: Re: [Gnash-dev] how to handle hash_map
Date: Sun, 26 Feb 2006 23:03:07 -0500
User-agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929)

Rob Savoye wrote:
>   hash_map is in both G++, and VC++, so we should just use it and not
> worry. I don't really see Gnash needing to be built with anything but
> these two compilers.

I just committed code that makes the hash class use hash_map. Do we have any way of testing the build using VC++?

I think I will plan on keeping the hash class in container.h because this way, we do not need ifdefs in every file to use stdext::hash_map on Windows and __gnu_cxx::hash_map on g++ platforms. Even so, the implementation of the hash class is now much simplified compared to before, and it contains only two additional functions that are not in hash_map.

As another thought, does anyone have any idea what the following segment of code does in container.h?

#ifdef _WIN32
#pragma warning(disable : 4345) // in MSVC 7.1, warning about placement new POD default initializer
#endif // _WIN32


reply via email to

[Prev in Thread] Current Thread [Next in Thread]