Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 685 Bytes

compiler-error-c3747.md

File metadata and controls

30 lines (24 loc) · 685 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C3747
Compiler Error C3747
11/04/2016
C3747
C3747
a9a4be67-5d9c-4dcc-9ae9-baae46cbecde

Compiler Error C3747

missing default type parameter : parameter param

Generic or template parameters with default values cannot be followed in the parameter list by parameters that do not have default values.

The following sample generates C3747:

// C3747.cpp
template <class T1 = int, class T2>   // C3747
struct MyStruct {};

Possible resolution:

// C3747b.cpp
// compile with: /c
template <class T1, class T2 = int>
struct MyStruct {};