Skip to content

Commit

Permalink
fix shadowed variable in fatal/type/deprecated/type_map.h
Browse files Browse the repository at this point in the history
Reviewed By: Orvid

Differential Revision: D52582921

fbshipit-source-id: 50707099ee28f8db54453a9dc29608b7f2501a85
  • Loading branch information
yfeldblum authored and facebook-github-bot committed Jan 19, 2024
1 parent af94326 commit 3cda2f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fatal/type/deprecated/type_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -667,9 +667,9 @@ class type_map {

template <typename TKey, typename TVisitor, typename... VArgs>
static constexpr bool visit(TVisitor &&visitor, VArgs &&...args) {
using mapped = find<TKey, detail::type_map_impl::visit_not_found>;
using found = find<TKey, detail::type_map_impl::visit_not_found>;

return detail::type_map_impl::visit_visitor<TKey, mapped>::visit(
return detail::type_map_impl::visit_visitor<TKey, found>::visit(
std::forward<TVisitor>(visitor),
std::forward<VArgs>(args)...
);
Expand Down

0 comments on commit 3cda2f9

Please sign in to comment.