Browse Source

Removing printing of std::string, in case that it caused the ambiguity with libc++.

David Piuva 11 months ago
parent
commit
b897391dc4
2 changed files with 1 additions and 7 deletions
  1. 1 5
      Source/DFPSR/api/stringAPI.cpp
  2. 0 2
      Source/DFPSR/api/stringAPI.h

+ 1 - 5
Source/DFPSR/api/stringAPI.cpp

@@ -27,6 +27,7 @@
 #include <fstream>
 #include <streambuf>
 #include <cstring>
+#include <string>
 #include <stdexcept>
 #include "stringAPI.h"
 #include "../api/fileAPI.h"
@@ -927,11 +928,6 @@ String& dsr::string_toStreamIndented(String& target, const char32_t* value, cons
 	atomic_append(target, value);
 	return target;
 }
-String& dsr::string_toStreamIndented(String& target, const std::string& value, const ReadableString& indentation) {
-	atomic_append(target, indentation);
-	atomic_append(target, value);
-	return target;
-}
 String& dsr::string_toStreamIndented(String& target, const float& value, const ReadableString& indentation) {
 	atomic_append(target, indentation);
 	doubleToString_arabic(target, (double)value);

+ 0 - 2
Source/DFPSR/api/stringAPI.h

@@ -25,7 +25,6 @@
 #define DFPSR_API_STRING
 
 #include <cstdint>
-#include <string>
 #include <iostream>
 #include <sstream>
 #include <functional>
@@ -130,7 +129,6 @@ String& string_toStreamIndented(String& target, const Printable& source, const R
 String& string_toStreamIndented(String& target, const char* value, const ReadableString& indentation);
 String& string_toStreamIndented(String& target, const ReadableString& value, const ReadableString& indentation);
 String& string_toStreamIndented(String& target, const char32_t* value, const ReadableString& indentation);
-String& string_toStreamIndented(String& target, const std::string& value, const ReadableString& indentation);
 String& string_toStreamIndented(String& target, const float& value, const ReadableString& indentation);
 String& string_toStreamIndented(String& target, const double& value, const ReadableString& indentation);
 String& string_toStreamIndented(String& target, const int64_t& value, const ReadableString& indentation);