Skip to content

Commit

Permalink
store inspection injectable dependencies as type alias
Browse files Browse the repository at this point in the history
  • Loading branch information
mosure committed Apr 13, 2021
1 parent 19725d5 commit 7226f23
Show file tree
Hide file tree
Showing 3 changed files with 451 additions and 253 deletions.
2 changes: 1 addition & 1 deletion include/mosure/injectable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct Inject {
);

#ifdef INVERSIFY_BINDING_INSPECTION
inline static std::tuple<Dependencies...> dependencies;
using value = std::tuple<Dependencies...>;
#endif

template <typename... SymbolTypes>
Expand Down
2 changes: 1 addition & 1 deletion include/mosure/resolver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class AutoResolverBase
return dep_tuple;
};

return std::apply(unroll, inversify::Injectable<U>::dependencies);
return std::apply(unroll, typename inversify::Injectable<U>::value{});
}
#endif
};
Expand Down
Loading

0 comments on commit 7226f23

Please sign in to comment.