From aa7f4a3169ad904c9e0c60bed74b9759c90f6248 Mon Sep 17 00:00:00 2001 From: Jonathan Lifflander Date: Mon, 9 Aug 2021 14:46:40 -0700 Subject: [PATCH] #1: add namespace to avoid problems --- src/test.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test.cc b/src/test.cc index 41fd4ca..613eb83 100644 --- a/src/test.cc +++ b/src/test.cc @@ -1,6 +1,8 @@ #include +namespace { + namespace std { struct string { string(char const* str) {} @@ -145,3 +147,5 @@ int main2() { test2(); return 0; } + +}