Skip to content

Commit

Permalink
Attempt to fix building with Clang.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Oct 1, 2023
1 parent cb8e07f commit 0912ba4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/platform/linux/base_linux_xdp_utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class SettingWatcher {

template <typename Callback>
SettingWatcher(Callback callback)
: SettingWatcher(Fn(callback)) {
: SettingWatcher(std::function(callback)) {
}

template <typename ...Args>
Expand All @@ -101,7 +101,7 @@ class SettingWatcher {
const Glib::ustring &group,
const Glib::ustring &key,
Callback callback)
: SettingWatcher(group, key, Fn(callback)) {
: SettingWatcher(group, key, std::function(callback)) {
}

~SettingWatcher();
Expand Down

0 comments on commit 0912ba4

Please sign in to comment.