Don't include ostream in rdcstr.h

* It's only needed for renderdoccmd and catch tests, so define it locally where
  needed.
This commit is contained in:
baldurk
2019-12-02 11:15:07 +00:00
parent f42d718ffa
commit 8db0811678
3 changed files with 10 additions and 6 deletions
+5
View File
@@ -34,6 +34,11 @@
#include "official/catch.hpp"
inline std::ostream &operator<<(std::ostream &os, rdcstr const &str)
{
return os << str.c_str();
}
namespace Catch
{
template <>
-6
View File
@@ -24,7 +24,6 @@
#pragma once
#include <ostream>
#include <string>
// special type for storing literals. This allows functions to force callers to pass them literals
@@ -769,11 +768,6 @@ inline bool operator!=(const std::string &left, const rdcstr &right)
return right != left;
}
inline std::ostream &operator<<(std::ostream &os, rdcstr const &str)
{
return os << str.c_str();
}
#if defined(RENDERDOC_QT_COMPAT)
inline rdcstr operator+(const QString &left, const rdcstr &right)
{
+5
View File
@@ -39,6 +39,11 @@ rdcstr DoStringise(const uint32_t &el)
return oss.str();
}
inline std::ostream &operator<<(std::ostream &os, rdcstr const &str)
{
return os << str.c_str();
}
#include <replay/renderdoc_tostr.inl>
bool usingKillSignal = false;