--- 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(); } };