diff options
| author | 2022-05-14 16:46:15 -0400 | |
|---|---|---|
| committer | 2022-05-14 16:48:34 -0400 | |
| commit | f981e90af3a911596442aaf0f1e049f1b8e6003f (patch) | |
| tree | be27c0a623bfe7e0963863b7a49b5d76a060cbd7 /src/shader_recompiler | |
| parent | Merge pull request #8308 from german77/disablesix (diff) | |
| download | yuzu-f981e90af3a911596442aaf0f1e049f1b8e6003f.tar.gz yuzu-f981e90af3a911596442aaf0f1e049f1b8e6003f.tar.xz yuzu-f981e90af3a911596442aaf0f1e049f1b8e6003f.zip | |
general: Avoid ambiguous format_to compilation errors
Ensures that we're using the fmt version of format_to.
These are also the only three outliers. All of the other formatters we
have are properly qualified.
Diffstat (limited to '')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/opcodes.h | 2 | ||||
| -rw-r--r-- | src/shader_recompiler/frontend/maxwell/opcodes.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/frontend/ir/opcodes.h b/src/shader_recompiler/frontend/ir/opcodes.h index d17dc0376..752879a18 100644 --- a/src/shader_recompiler/frontend/ir/opcodes.h +++ b/src/shader_recompiler/frontend/ir/opcodes.h | |||
| @@ -103,6 +103,6 @@ struct fmt::formatter<Shader::IR::Opcode> { | |||
| 103 | } | 103 | } |
| 104 | template <typename FormatContext> | 104 | template <typename FormatContext> |
| 105 | auto format(const Shader::IR::Opcode& op, FormatContext& ctx) { | 105 | auto format(const Shader::IR::Opcode& op, FormatContext& ctx) { |
| 106 | return format_to(ctx.out(), "{}", Shader::IR::NameOf(op)); | 106 | return fmt::format_to(ctx.out(), "{}", Shader::IR::NameOf(op)); |
| 107 | } | 107 | } |
| 108 | }; | 108 | }; |
diff --git a/src/shader_recompiler/frontend/maxwell/opcodes.h b/src/shader_recompiler/frontend/maxwell/opcodes.h index 83093fca0..72dd143c2 100644 --- a/src/shader_recompiler/frontend/maxwell/opcodes.h +++ b/src/shader_recompiler/frontend/maxwell/opcodes.h | |||
| @@ -24,6 +24,6 @@ struct fmt::formatter<Shader::Maxwell::Opcode> { | |||
| 24 | } | 24 | } |
| 25 | template <typename FormatContext> | 25 | template <typename FormatContext> |
| 26 | auto format(const Shader::Maxwell::Opcode& opcode, FormatContext& ctx) { | 26 | auto format(const Shader::Maxwell::Opcode& opcode, FormatContext& ctx) { |
| 27 | return format_to(ctx.out(), "{}", NameOf(opcode)); | 27 | return fmt::format_to(ctx.out(), "{}", NameOf(opcode)); |
| 28 | } | 28 | } |
| 29 | }; | 29 | }; |