Skip to content

Latest commit

 

History

History
61 lines (55 loc) · 1.11 KB

compiler-error-c3539.md

File metadata and controls

61 lines (55 loc) · 1.11 KB
title Compiler Error C3539 | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-tools
ms.tgt_pltfrm
ms.topic error-reference
f1_keywords
C3539
dev_langs
C++
helpviewer_keywords
C3539
ms.assetid 34a33a0f-d1b6-498f-b312-ffad2d4799b3
caps.latest.revision 6
author corob-msft
ms.author corob
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

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:auto  
template<class T> class C{};  
int main()  
{  
   C<auto> c;   // C3539  
   return 0;  
}  

See Also

auto Keyword