quote:Original post by SabreMan Several reasons, I guess. It''s not too hard to imagine implementing a state machine using this sort of technique - i.e. you could modify the runtime behaviour of an event according to the current state.
Oh, I thought we''re just talking about event/message handling for Windows (or whatever).
Premature optimizations can only slow down your project even more.
>>Whenever I use a std::map in my project, I always get the "Identifier truncated to 255 characters in Debug information" warning, even if I''m just doing a std::map
You''re actually not just doing a std::map, you''re really using std::map,std::alloc>,int,std::less,std::alloc>,std::alloc>
It''s not really hard to exceed that 255 char limit once you get going =)
Make sure the #pragma is the first line of the file, or near enough. A lot of people report that it doesn''t work, but I''ve always found that it does if it comes before all the #includes.
And the member function as windows callback question comes up almost literally every day - do search the forums before posting.