Skip to content

Commit

Permalink
Stop using std::basic_string<unsigned char>
Browse files Browse the repository at this point in the history
std::basic_string<unsigned char> relies on a non-standard generic
char_traits<> implementation, recently removed from libc++.

Upstreams cl/605337651.

Relevant to google#116.
  • Loading branch information
tpudlik committed Apr 5, 2024
1 parent dc5a0f1 commit 2e0b8a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/cpp/test/emboss_memory_util_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <string>
#if __cplusplus >= 201703L
#include <string_view>
#endif // __cplusplus >= 201703L
Expand Down Expand Up @@ -221,7 +222,7 @@ class ReadOnlyContiguousBufferTest : public ::testing::Test {};
typedef ::testing::Types<
/**/ ::std::vector<char>, ::std::array<char, 8>,
::std::vector<unsigned char>, ::std::vector<signed char>, ::std::string,
::std::basic_string<signed char>, ::std::basic_string<unsigned char>,
::std::basic_string<char>,
::std::vector<unsigned char, NonstandardAllocator<unsigned char>>,
::std::basic_string<char, ::std::char_traits<char>,
NonstandardAllocator<char>>>
Expand Down

0 comments on commit 2e0b8a9

Please sign in to comment.