Browse Source

Noticed that GCC crashed in the linker before because it allowed using std::string without #include <string>.

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

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

@@ -27,7 +27,6 @@
 #include <fstream>
 #include <streambuf>
 #include <cstring>
-#include <string>
 #include <stdexcept>
 #include "stringAPI.h"
 #include "../api/fileAPI.h"

+ 1 - 1
Source/DFPSR/api/stringAPI.h

@@ -27,6 +27,7 @@
 #include <cstdint>
 #include <iostream>
 #include <sstream>
+#include <string>
 #include <functional>
 #include "bufferAPI.h"
 #include "../collection/List.h"
@@ -84,7 +85,6 @@ public:
 	virtual ~ReadableString();
 public:
 	// Converting to unknown character encoding using only the ascii character subset
-	// A bug in GCC linking forces these to be virtual
 	virtual std::ostream& toStream(std::ostream& out) const;
 	virtual std::string toStdString() const;
 };