Files
jak-project/decompiler/util/Error.h
T
Ziemas 4afefc5a82 Update to C++20 (#3193)
Just putting this here for consideration, I'm personally not in a big
rush to get it.

---------

Co-authored-by: Tyler Wilding <xtvaser@gmail.com>
2024-02-17 14:14:23 -05:00

13 lines
300 B
C++

#pragma once
#include <stdexcept>
#include "third-party/fmt/core.h"
class Error : public std::runtime_error {
public:
template <typename... Args>
Error(const std::string& format, Args&&... args)
: std::runtime_error(fmt::format(fmt::runtime(format), std::forward<Args>(args)...)) {}
};