Skip to content

Commit

Permalink
chore: add default AutoWired instance
Browse files Browse the repository at this point in the history
  • Loading branch information
Dup4 committed Sep 13, 2022
1 parent 1e96bfe commit 3e4c4c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/autowired/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ private:
using ClassTypeForAutoWired = ClassType; \
\
public: \
ClassType(auto_wired::AutoWired& w) : auto_wired_flag_(1)
ClassType(auto_wired::AutoWired& w = auto_wired::AutoWired::Instance()) : auto_wired_flag_(1)

#define AUTO_WIRED_DECLARE_CLASS(name, ...) \
, name(w.GetClassRefWithAddClassRelations<ClassTypeForAutoWired, std::remove_reference_t<decltype(name)>>( \
Expand Down

0 comments on commit 3e4c4c3

Please sign in to comment.