Skip to content

Instantly share code, notes, and snippets.

@daantimmer
Created December 17, 2018 09:43
Show Gist options
  • Save daantimmer/dd499b61a21564def3591a48a70fce02 to your computer and use it in GitHub Desktop.
Save daantimmer/dd499b61a21564def3591a48a70fce02 to your computer and use it in GitHub Desktop.
auto ptrExpected = reinterpret_cast<std::array<uint8_t, sizeof(buffer//data//struct)>*>(expectedBuffer//&data//&struct);
auto ptrActual = reinterpret_cast<const std::array<uint8_t, sizeof(buffer//data//struct)>*>(actualBuffer//&data//&struct);
ASSERT_EQ(*ptrExpected, *ptrActual);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment