From ca3708df71bcc2fbbaf63f5fa415355d43edeeeb Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 10 Mar 2024 15:40:32 +0100 Subject: [PATCH] fix: `std::bind_front` not supporting member functions everywhere --- plugins/builtin/source/content/providers/file_provider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/providers/file_provider.cpp b/plugins/builtin/source/content/providers/file_provider.cpp index c89fa4a40..68cb7ff55 100644 --- a/plugins/builtin/source/content/providers/file_provider.cpp +++ b/plugins/builtin/source/content/providers/file_provider.cpp @@ -227,7 +227,7 @@ namespace hex::plugin::builtin { m_data = m_file.readVectorAtomic(0x00, m_fileSize); if (!m_data.empty()) { m_changeTracker = wolv::io::ChangeTracker(m_file); - m_changeTracker.startTracking(std::bind_front(FileProvider::handleFileChange, this)); + m_changeTracker.startTracking([this]{ this->handleFileChange(); }); m_file.close(); m_loadedIntoMemory = true; }