fix build errors in Base64PlatformTest.cpp on Windows
commitef4bef32ef89f83a1040287b48daab261787dc0c
authorAdam Simpkins <simpkins@meta.com>
Mon, 6 Feb 2023 22:11:52 +0000 (6 14:11 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 6 Feb 2023 22:11:52 +0000 (6 14:11 -0800)
tree25c3832a4f43bb3cace7ecf864c5d2864f861a19
parentff3141d404d7a678c8b38a31eed9e311d6c57622
fix build errors in Base64PlatformTest.cpp on Windows

Summary:
This code was trying to assign a `std::array::iterator` to a `uint8_t*`.
In libstdc++ the `std::array::iterator` type happens to be a simple pointer,
but this is not true on Windows, resulting in a build failure.

This updates the code to use `std::array::data()` to get a pointer to the
array data, and not `std::array::begin()`.

Reviewed By: DenisYaroshevskiy

Differential Revision: D42948330

fbshipit-source-id: cbd90d80aed9443af8a349111c06619fb0a2c901
third-party/folly/src/folly/detail/base64_detail/tests/Base64PlatformTest.cpp