Skip to content

Latest commit

 

History

History
48 lines (45 loc) · 872 Bytes

compiler-error-c2516.md

File metadata and controls

48 lines (45 loc) · 872 Bytes
title Compiler Error C2516 | 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
C2516
dev_langs
C++
helpviewer_keywords
C2516
ms.assetid cd3accc1-0179-4a13-9587-616908c4ad1d
caps.latest.revision 7
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 C2516

'name' : is not a legal base class

The class is derived from a type name defined by a typedef statement.

The following sample generates C2516:

// C2516.cpp  
typedef unsigned long ulong;  
class C : public ulong {}; // C2516