sources/network/bytestream.h

changeset 182
20ca0a6be175
parent 180
2e7225dbd9b2
child 183
9b6a0daedfc0
--- a/sources/network/bytestream.h	Wed Jan 27 13:17:11 2021 +0200
+++ b/sources/network/bytestream.h	Wed Jan 27 14:04:53 2021 +0200
@@ -30,11 +30,10 @@
 
 #pragma once
 #include <stdexcept>
+#include <string>
 #include "../main.h"
 BEGIN_ZFC_NAMESPACE
 
-class String;
-
 enum
 {
 	MAX_NETWORK_STRING = 0x800
@@ -42,15 +41,15 @@
 
 class IOError : public std::exception
 {
-	String m_message;
+	std::string m_message;
 
 public:
-	IOError(String message) :
+	IOError(std::string message) :
 		m_message(message) {}
 
 	const char* what() const throw()
 	{
-		return m_message;
+		return m_message.data();
 	}
 };
 

mercurial