File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 5
5
6
6
namespace autowiring {
7
7
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>
8
14
template <class T , typename ... Args>
9
15
class has_static_new
10
16
{
@@ -13,6 +19,7 @@ class has_static_new
13
19
std::is_convertible<decltype(U::New(std::declval<Args>()...)), T*>::value
14
20
>::type>
15
21
static std::true_type check (void *);
22
+
16
23
template <class ...>
17
24
static std::false_type check (...);
18
25
public:
Original file line number Diff line number Diff line change @@ -167,5 +167,5 @@ static_assert(
167
167
);
168
168
169
169
TEST_F (AutoConstructTest, MultiStaticNewTest) {
170
- AutoConstruct<MultiStaticNew> badstatic { 1 };
171
- }
170
+ AutoConstruct<MultiStaticNew> multistatic { 1 };
171
+ }
You can’t perform that action at this time.
0 commit comments