diff --git a/a.out b/a.out deleted file mode 100755 index 2554d7ef..00000000 Binary files a/a.out and /dev/null differ diff --git a/devel/include/detail/wtr/watcher/adapter/windows/watch.hpp b/devel/include/detail/wtr/watcher/adapter/windows/watch.hpp index afbc2220..90bf77e7 100644 --- a/devel/include/detail/wtr/watcher/adapter/windows/watch.hpp +++ b/devel/include/detail/wtr/watcher/adapter/windows/watch.hpp @@ -117,10 +117,12 @@ inline auto do_event_send( watch_event_proxy& w, ::wtr::watcher::event::callback const& callback) noexcept -> bool { + using namespace ::wtr::watcher; + struct RenameEventTracker { std::filesystem::path path_name; - enum ::wtr::watcher::event::effect_type effect_type; - enum ::wtr::watcher::event::path_type path_type; + enum event::effect_type effect_type; + enum event::path_type path_type; bool set = false; }; @@ -135,11 +137,11 @@ inline auto do_event_send( RenameEventTracker new_tracker; auto const trigger_rename_callback = [&]() { - auto renamed_from = ::wtr::watcher::event{ + auto renamed_from = event{ old_tracker.path_name, old_tracker.effect_type, old_tracker.path_type}; - auto renamed_to = ::wtr::watcher::event{ + auto renamed_to = event{ new_tracker.path_name, new_tracker.effect_type, new_tracker.path_type}; diff --git a/include/wtr/watcher.hpp b/include/wtr/watcher.hpp index ba2d2efe..d1e36831 100644 --- a/include/wtr/watcher.hpp +++ b/include/wtr/watcher.hpp @@ -1846,10 +1846,12 @@ inline auto do_event_send( watch_event_proxy& w, ::wtr::watcher::event::callback const& callback) noexcept -> bool { + using namespace ::wtr::watcher; + struct RenameEventTracker { std::filesystem::path path_name; - enum ::wtr::watcher::event::effect_type effect_type; - enum ::wtr::watcher::event::path_type path_type; + enum event::effect_type effect_type; + enum event::path_type path_type; bool set = false; }; @@ -1864,11 +1866,11 @@ inline auto do_event_send( RenameEventTracker new_tracker; auto const trigger_rename_callback = [&]() { - auto renamed_from = ::wtr::watcher::event{ + auto renamed_from = event{ old_tracker.path_name, old_tracker.effect_type, old_tracker.path_type}; - auto renamed_to = ::wtr::watcher::event{ + auto renamed_to = event{ new_tracker.path_name, new_tracker.effect_type, new_tracker.path_type};