mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
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:
Vendored
+5
@@ -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 <>
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user