Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 725 Bytes

compiler-error-c3539.md

File metadata and controls

36 lines (27 loc) · 725 Bytes
descriptiontitlems.datef1_keywordshelpviewer_keywordsms.assetid
Learn more about: Compiler Error C3539
Compiler Error C3539
11/04/2016
C3539
C3539
34a33a0f-d1b6-498f-b312-ffad2d4799b3

Compiler Error C3539

'type': a template-argument cannot be a type that contains 'auto'

The indicated template argument type cannot contain a usage of the auto keyword.

To correct this error

  1. Do not specify the template argument with the auto keyword.

Example

The following example yields C3539.

// C3539.cpp// Compile with /Zc:autotemplate<classT> classC{}; intmain() { C<auto> c; // C3539return0; }

See also

auto Keyword

close