martine/ninja — pull request #196 by evanj (2012-01-13 14:39:45+00:00)
Title: Fix MSVC invalid string problem

The MSVC std::string implementation copies strings, so using make_pair resulted in a pointer to invalid memory. This ensures the insert uses a StringPiece without an intermediate std::string copy, so the correct pointer ends up in the hash_map.

I think this fixes the issue discussed in this thread:

https://groups.google.com/group/ninja-build/browse_thread/thread/2b987b643bc9346e