build: Fix MSVC builds

This commit is contained in:
WerWolv
2025-05-30 11:25:15 +02:00
parent d8f0120698
commit 78b3d3d001
9 changed files with 35 additions and 24 deletions

View File

@@ -59,20 +59,9 @@ namespace hex::test {
class Tests {
public:
static auto addTest(const std::string &name, Function func, bool shouldFail) noexcept {
s_tests.insert({
name, {func, shouldFail}
});
static int addTest(const std::string &name, Function func, bool shouldFail) noexcept;
return 0;
}
static auto &get() noexcept {
return s_tests;
}
private:
static std::map<std::string, Test> s_tests;
static std::map<std::string, Test> &get() noexcept;
};
template<class F>