Skip to content

Commit

Permalink
Rustify: remove conflicting find_or_default implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
SunPodder committed Jan 29, 2025
1 parent 23f7765 commit d2097b5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/Rustify/Result.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,6 @@ try_find(const toml::value& v, const U&... u) noexcept {
}
}

template <std::default_initializable T, typename... K>
inline auto
find_or_default(
const toml::value& v, const K&... keys
) noexcept(std::is_nothrow_default_constructible_v<T>) {
return toml::find_or<T>(v, keys..., T{});
}

} // namespace toml

#endif
Expand Down

0 comments on commit d2097b5

Please sign in to comment.