Skip to content

Commit

Permalink
Adding overload specialization for CreationRules::New
Browse files Browse the repository at this point in the history
This fixes MSVC, which seems to have a problem when specializing a ctor with a template parameter pack.  To avoid this issue, a no-argument variant is provided.
  • Loading branch information
codemercenary committed Aug 13, 2014
1 parent 6508159 commit 5ec617a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions autowiring/TypeUnifier.h
Expand Up @@ -12,9 +12,11 @@ class TypeUnifierComplex:
public TypeUnifier
{
public:
template<class... Args>
TypeUnifierComplex(Args&&... args) :
T(std::forward<Args>(args)...)
TypeUnifierComplex(void) {}

template<class Arg, class... Args>
TypeUnifierComplex(Arg&& arg, Args&&... args) :
T(std::forward<Arg>(arg), std::forward<Args>(args)...)
{}
};

Expand Down

0 comments on commit 5ec617a

Please sign in to comment.