title: Has gtest something that compares binary?
body: <p>Has <a href="https://github.com/google/googletest" rel="nofollow noreferrer">Google Test</a> compare functions that operate on the binary representation of given object?</p>
  
  <p>I have two <code>struct</code>-objects of same type but no compare function. The <code>struct</code> is a plain-old-data-type (POD) so that a binary compare would work.</p>
  
  <p>I need something like:</p>
  
  <pre><code>struct A{
    int some_data;
  };
  
  TEST(test, case){
      A a1{0}, a2{1};
      EXPECT_BINARY_EQ(a1, a2);
  }
  </code></pre>
  
  <p>What is the simplest way to do that in C++ with gtest.</p>