Skip to content

Commit a0176cd

Browse files
committed
tests: Fix clang warning about missing constructor to initialize const member.
1 parent fdee9f1 commit a0176cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/headers/template.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ template<typename T, typename U> class Foo {
77
};
88

99
template<typename T> class B {
10-
T m_member;
10+
T m_member { 0 };
1111
};
1212

1313
void bar(Foo<int, int> foo);

0 commit comments

Comments
 (0)