mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00:00
blantant test code removal well this is embarassing, VS didn't recompile it, so I didn't notice the mistake
This commit is contained in:
parent
02729695ff
commit
69352206b6
2 changed files with 5 additions and 2 deletions
|
@ -1,6 +1,9 @@
|
|||
#include "stdafx.h"
|
||||
#include "StrFmt.h"
|
||||
|
||||
static const std::string fmt::placeholder = "???";
|
||||
|
||||
|
||||
//wrapper to deal with advance sprintf formating options with automatic length finding
|
||||
//can't take strings by reference because of "va_start", so overload it with char *
|
||||
std::string fmt::FormatV(const char *fmt, va_list args)
|
||||
|
|
|
@ -15,7 +15,7 @@ namespace fmt{
|
|||
|
||||
struct empty_t{};
|
||||
|
||||
//static const string placeholder = "???";
|
||||
extern const string placeholder;
|
||||
|
||||
// write `fmt` from `pos` to the first occurence of `fmt::placeholder` to
|
||||
// the stream `os`. Then write `arg` to to the stream. If there's no
|
||||
|
@ -24,7 +24,7 @@ namespace fmt{
|
|||
template<typename T>
|
||||
empty_t write(const string &fmt, ostream &os, string::size_type &pos, T &&arg)
|
||||
{
|
||||
string::size_type ins = fmt.find(/*placeholder*/"???", pos);
|
||||
string::size_type ins = fmt.find(placeholder, pos);
|
||||
|
||||
if (ins == string::npos)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue