Skip to content

Commit fcf91a6

Browse files
author
Walter Gray
committed
Restore comment, fix bad variable name
1 parent e0a5b7f commit fcf91a6

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/autowiring/has_static_new.h

+7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55

66
namespace autowiring {
77

8+
/// <summary>
9+
/// Utility helper structure for types which have a factory New routine
10+
/// </summary>
11+
/// <remarks>
12+
/// A factory New routine is malformed when the return type is not implicitly castable to type T
13+
/// </remarks>
814
template <class T, typename... Args>
915
class has_static_new
1016
{
@@ -13,6 +19,7 @@ class has_static_new
1319
std::is_convertible<decltype(U::New(std::declval<Args>()...)), T*>::value
1420
>::type>
1521
static std::true_type check(void*);
22+
1623
template <class...>
1724
static std::false_type check(...);
1825
public:

src/autowiring/test/AutoConstructTest.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -167,5 +167,5 @@ static_assert(
167167
);
168168

169169
TEST_F(AutoConstructTest, MultiStaticNewTest) {
170-
AutoConstruct<MultiStaticNew> badstatic{ 1 };
171-
}
170+
AutoConstruct<MultiStaticNew> multistatic{ 1 };
171+
}

0 commit comments

Comments
 (0)