Skip to content

Commit e6c0aff

Browse files
committed
Initialize dependency flags
1 parent a137e98 commit e6c0aff

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

include/mosure/resolver.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct Dependency {
2626

2727
operator bool() { return dependent; }
2828

29-
bool dependent;
29+
bool dependent { false };
3030
};
3131

3232
template <typename... SymbolTypes>

single_include/mosure/inversify.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ struct Dependency {
265265

266266
operator bool() { return dependent; }
267267

268-
bool dependent;
268+
bool dependent { false };
269269
};
270270

271271
template <typename... SymbolTypes>

0 commit comments

Comments
 (0)