Add Catch.hpp StringMaker template specialisation for rdcstr

* Otherwise it gets identified as a 'range' with begin() / end() and "foobar"
  gets printed as { 'f', 'o', 'o', 'b', 'a', 'r' }
This commit is contained in:
baldurk
2019-02-01 18:27:56 +00:00
parent 3a79d7e069
commit b178ae800c
+11 -1
View File
@@ -29,6 +29,16 @@
#define CATCH_CONFIG_FORCE_FALLBACK_STRINGIFIER
#define CATCH_CONFIG_INLINE_DEBUG_BREAK
#include "api/replay/basic_types.h"
#include "api/replay/stringise.h"
#include "official/catch.hpp"
#include "official/catch.hpp"
namespace Catch
{
template <>
struct StringMaker<rdcstr>
{
static std::string convert(rdcstr const &value) { return value; }
};
}