Browse Source

include singleton.h only if needed

использование Singleton спрятано за #ifndef _LIBCPP_VERSION - прячем инклуд аналогично
commit_hash:0f8b0d3bee5ac020dd26dcadddb41b28164f4022
tobo 5 months ago
parent
commit
e9cdc6695e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      util/generic/string.h

+ 3 - 1
util/generic/string.h

@@ -17,7 +17,9 @@
 #include "bitops.h"
 #include "explicit_type.h"
 #include "reserve.h"
-#include "singleton.h"
+#ifndef _LIBCPP_VERSION
+    #include "singleton.h"
+#endif
 #include "strbase.h"
 #include "strbuf.h"
 #include "string_hash.h"