shithub: libvpx

Download patch

ref: bb1e5b79dae45671bd8605cc60b3deb38b3491c3
parent: a136c1769d62074d50621c6e0e3c4fba2ef0b636
author: Alex Converse <[email protected]>
date: Tue Apr 26 17:38:04 EDT 2016

Declare the operator== overload for M128A in the global namespace.

ADL will look this up from the callsite namespace iff it is declared
before the callsite or from the parent namespace of the class type (the
global namespace).

This patch has been tested on MSVS 2015 and clang-3.8.

Change-Id: I00ba74712c9b617b9d81761abed1e14d8f25d8e3

--- a/test/register_state_check.h
+++ b/test/register_state_check.h
@@ -36,15 +36,9 @@
 #include <windows.h>
 #include <winnt.h>
 
-namespace testing {
-namespace internal {
-
 inline bool operator==(const M128A& lhs, const M128A& rhs) {
   return (lhs.Low == rhs.Low && lhs.High == rhs.High);
 }
-
-}  // namespace internal
-}  // namespace testing
 
 namespace libvpx_test {