diff options
author | jeanluc@chromium.org <jeanluc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-30 22:47:42 +0000 |
---|---|---|
committer | jeanluc@chromium.org <jeanluc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-30 22:47:42 +0000 |
commit | c90d849636fd9db7f79f2f2b4611f2bcff0c5700 (patch) | |
tree | f9b367a0243559811d02389900def80ab84f9139 /tools | |
parent | b70386476df8f11fbad872195f48518b20b20b41 (diff) | |
download | chromium_src-c90d849636fd9db7f79f2f2b4611f2bcff0c5700.zip chromium_src-c90d849636fd9db7f79f2f2b4611f2bcff0c5700.tar.gz chromium_src-c90d849636fd9db7f79f2f2b4611f2bcff0c5700.tar.bz2 |
Fix miscellaneous compilation bugs under Visual Studio 2010.
BUG=71145
TEST=Run unit tests
Review URL: http://codereview.chromium.org/6240017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73119 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rw-r--r-- | tools/memory_watcher/memory_hook.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/memory_watcher/memory_hook.h b/tools/memory_watcher/memory_hook.h index 06a50ef..4227edb 100644 --- a/tools/memory_watcher/memory_hook.h +++ b/tools/memory_watcher/memory_hook.h @@ -61,6 +61,19 @@ class PrivateHookAllocator { PrivateHookAllocator(const PrivateHookAllocator<U>&) {} }; +template<class T, class U> inline +bool operator==(const PrivateHookAllocator<T>&, + const PrivateHookAllocator<U>&) { + return (true); +} + +template<class T, class U> inline +bool operator!=(const PrivateHookAllocator<T>& left, + const PrivateHookAllocator<U>& right) { + return (!(left == right)); +} + + // Classes which monitor memory from these hooks implement // the MemoryObserver interface. class MemoryObserver { |