Skip to content

Commit

Permalink
fix supplying vectors to MakeGlibVariant
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed Nov 21, 2022
1 parent d3f9e82 commit e1e4c68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/platform/linux/base_linux_glibmm_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ namespace Platform {

template <typename T>
auto MakeGlibVariant(T &&data) {
return Glib::Variant<T>::create(data);
return Glib::Variant<std::decay_t<T>>::create(data);
}

template <typename T>
Expand Down

0 comments on commit e1e4c68

Please sign in to comment.