This commit is contained in:
lizzie 2026-01-27 19:27:39 +00:00
parent 8f4885de84
commit e2405b9fb8
1 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,8 @@
#include <fstream>
#include <boost/type_traits.hpp>
#include "common/assert.h"
#include "common/fs/file.h"
#include "common/fs/fs.h"
@ -369,7 +371,7 @@ ISystemSettingsServer::~ISystemSettingsServer() {
}
bool ISystemSettingsServer::LoadSettingsFile(std::filesystem::path& path, auto&& default_func) {
using settings_type = decltype(default_func());
using settings_type = boost::function_traits<decltype(default_func)>::arg1_type;
if (!Common::FS::CreateDirs(path)) {
return false;