Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-2/compiler-error-c3661.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Compiler Error C3661"
title: "Compiler Error C3661"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C3661"
ms.date: 11/04/2016
f1_keywords: ["C3661"]
helpviewer_keywords: ["C3661"]
ms.assetid: 50793fd1-1829-4b29-ad0d-094ef2068b43
---
# Compiler Error C3661

explicit override list did not find any methods to override
> explicit override list did not find any methods to override

## Remarks

An explicit override specified one or more type names. However, there was no function with the necessary signature in the type(s) that matched the overriding function's signature. If you attempt to override based on type name, there must be one or more virtual functions in the specified type(s) that match the signature of the overriding function.

Expand Down
11 changes: 6 additions & 5 deletions docs/error-messages/compiler-errors-2/compiler-error-c3662.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
---
description: "Learn more about: Compiler Error C3662"
title: "Compiler Error C3662"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C3662"
ms.date: 11/04/2016
f1_keywords: ["C3662"]
helpviewer_keywords: ["C3662"]
ms.assetid: 61bd3e41-a86b-42c0-be89-d992d3906ff1
---
# Compiler Error C3662

'member' : override specifier 'specifier' only allowed on member functions of managed or WinRT classes
> 'member' : override specifier 'specifier' only allowed on member functions of managed or WinRT classes

## Remarks

An override specifier was used on a member of native type, which is not allowed.

For more information, see [Explicit Overrides](../../extensions/explicit-overrides-cpp-component-extensions.md).

## Example

The following sample generates C3662.
The following example generates C3662.

```cpp
// C3662.cpp
Expand Down
13 changes: 8 additions & 5 deletions docs/error-messages/compiler-errors-2/compiler-error-c3665.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
---
description: "Learn more about: Compiler Error C3665"
title: "Compiler Error C3665"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C3665"
ms.date: 11/04/2016
f1_keywords: ["C3665"]
helpviewer_keywords: ["C3665"]
ms.assetid: 893bb47e-8de1-43aa-af7d-fa47ad149ee9
---
# Compiler Error C3665

'destructor' : override specifier 'keyword' not allowed on a destructor/finalizer
> 'destructor' : override specifier 'keyword' not allowed on a destructor/finalizer

## Remarks

A keyword was used that is not allowed on a destructor or finalizer.

For example, a new slot cannot be requested on a destructor or finalizer. For more information, see [Explicit Overrides](../../extensions/explicit-overrides-cpp-component-extensions.md) and [Destructors and finalizers](../../dotnet/how-to-define-and-consume-classes-and-structs-cpp-cli.md#BKMK_Destructors_and_finalizers).

The following sample generates C3665:
## Example

The following example generates C3665:

```cpp
// C3665.cpp
Expand Down
11 changes: 6 additions & 5 deletions docs/error-messages/compiler-errors-2/compiler-error-c3666.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
---
description: "Learn more about: Compiler Error C3666"
title: "Compiler Error C3666"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C3666"
ms.date: 11/04/2016
f1_keywords: ["C3666"]
helpviewer_keywords: ["C3666"]
ms.assetid: 459e51dd-cefb-4346-99b3-644f2d8b65b2
---
# Compiler Error C3666

'constructor' : override specifier 'keyword' not allowed on a constructor
> 'constructor' : override specifier 'keyword' not allowed on a constructor

## Remarks

An override specifier was used on a constructor, and that is not allowed. For more information, see [Override Specifiers](../../extensions/override-specifiers-cpp-component-extensions.md).

## Example

The following sample generates C3666.
The following example generates C3666.

```cpp
// C3666.cpp
Expand Down
11 changes: 6 additions & 5 deletions docs/error-messages/compiler-errors-2/compiler-error-c3668.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
---
description: "Learn more about: Compiler Error C3668"
title: "Compiler Error C3668"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C3668"
ms.date: 11/04/2016
f1_keywords: ["C3668"]
helpviewer_keywords: ["C3668"]
ms.assetid: 53a96698-bde4-4447-95b5-b5108291f60c
---
# Compiler Error C3668

'method' : method with override specifier 'override' did not override any base class methods
> 'method' : method with override specifier 'override' did not override any base class methods

## Remarks

A function attempted to override a non-existent function.

For more information, see [Explicit Overrides](../../extensions/explicit-overrides-cpp-component-extensions.md).

## Example

The following sample generates C3668.
The following example generates C3668.

```cpp
// C3668.cpp
Expand Down
11 changes: 6 additions & 5 deletions docs/error-messages/compiler-errors-2/compiler-error-c3669.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
---
description: "Learn more about: Compiler Error C3669"
title: "Compiler Error C3669"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C3669"
ms.date: 11/04/2016
f1_keywords: ["C3669"]
helpviewer_keywords: ["C3669"]
ms.assetid: be9c7ae4-e96f-47ab-922a-39a3537d5ca6
---
# Compiler Error C3669

'member' : override specifier 'override' not allowed on static member functions or constructors
> 'member' : override specifier 'override' not allowed on static member functions or constructors

## Remarks

An override was specified incorrectly. For more information, see [Explicit Overrides](../../extensions/explicit-overrides-cpp-component-extensions.md).

## Example

The following sample generates C3669.
The following example generates C3669.

```cpp
// C3669.cpp
Expand Down
13 changes: 8 additions & 5 deletions docs/error-messages/compiler-errors-2/compiler-error-c3670.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
description: "Learn more about: Compiler Error C3670"
title: "Compiler Error C3670"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C3670"
ms.date: 11/04/2016
f1_keywords: ["C3670"]
helpviewer_keywords: ["C3670"]
ms.assetid: d0fa9c6e-8f90-48c7-9066-31b4fa5942eb
---
# Compiler Error C3670

'override' : cannot override inaccessible base class method 'method'
> 'override' : cannot override inaccessible base class method 'method'

## Remarks

An override can only take place on a function whose access level makes it available in a derived type. For more information, see [Explicit Overrides](../../extensions/explicit-overrides-cpp-component-extensions.md).

The following sample generates C3670:
## Example

The following example generates C3670:

```cpp
// C3670.cpp
Expand Down
11 changes: 6 additions & 5 deletions docs/error-messages/compiler-errors-2/compiler-error-c3671.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
---
description: "Learn more about: Compiler Error C3671"
title: "Compiler Error C3671"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C3671"
ms.date: 11/04/2016
f1_keywords: ["C3671"]
helpviewer_keywords: ["C3671"]
ms.assetid: d684e4ae-87e2-4424-80bb-6f346652c831
---
# Compiler Error C3671

'function_1' : function does not override 'function_2'
> 'function_1' : function does not override 'function_2'

## Remarks

When using explicit override syntax, the compiler generates an error if a function is not overridden. See [Explicit Overrides](../../extensions/explicit-overrides-cpp-component-extensions.md) for more information.

## Example

The following sample generates C3671.
The following example generates C3671.

```cpp
// C3671.cpp
Expand Down
6 changes: 4 additions & 2 deletions docs/error-messages/compiler-errors-2/compiler-error-c3672.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ helpviewer_keywords: ["C3672"]
---
# Compiler Error C3672

pseudo-destructor expression can only be used as part of a function call
> pseudo-destructor expression can only be used as part of a function call

## Remarks

A destructor was called incorrectly. For more information, see [Destructors](../../cpp/destructors-cpp.md).

## Example

The following sample generates C3672.
The following example generates C3672.

```cpp
// C3672.cpp
Expand Down
13 changes: 7 additions & 6 deletions docs/error-messages/compiler-errors-2/compiler-error-c3673.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
---
description: "Learn more about: Compiler Error C3673"
title: "Compiler Error C3673"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C3673"
ms.date: 11/04/2016
f1_keywords: ["C3673"]
helpviewer_keywords: ["C3673"]
ms.assetid: bb6d2079-05af-4e2c-be0e-75c892e6c590
---
# Compiler Error C3673

'type' : class does not have a copy-constructor
> 'type' : class does not have a copy-constructor

## Remarks

A user-defined constructor is needed to copy objects of CLR ref types. For more information, see [C++ Stack Semantics for Reference Types](../../dotnet/cpp-stack-semantics-for-reference-types.md).

## Examples

The following sample generates C3673.
The following example generates C3673.

```cpp
// C3673.cpp
Expand All @@ -32,7 +33,7 @@ int main() {
}
```

The following sample generates C3673.
The following example generates C3673.

```cpp
// C3673_b.cpp
Expand Down
11 changes: 6 additions & 5 deletions docs/error-messages/compiler-errors-2/compiler-error-c3675.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
---
description: "Learn more about: Compiler Error C3675"
title: "Compiler Error C3675"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C3675"
ms.date: 11/04/2016
f1_keywords: ["C3675"]
helpviewer_keywords: ["C3675"]
ms.assetid: 87461613-6633-430b-b95d-c7cb1bb63776
---
# Compiler Error C3675

'function' : is reserved because 'property' is defined
> 'function' : is reserved because 'property' is defined

## Remarks

When you declare a simple property, the compiler generates the get and set accessor methods, and those names are present in the scope of your program. The compiler-generated names are formed by prepending get_ and set_ to the property name. Therefore, you cannot declare functions with the same name as the compiler-generated accessors.

See [property](../../extensions/property-cpp-component-extensions.md) for more information.

## Example

The following sample generates C3675.
The following example generates C3675.

```cpp
// C3675.cpp
Expand Down
13 changes: 8 additions & 5 deletions docs/error-messages/compiler-errors-2/compiler-error-c3697.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
description: "Learn more about: Compiler Error C3697"
title: "Compiler Error C3697"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C3697"
ms.date: 11/04/2016
f1_keywords: ["C3697"]
helpviewer_keywords: ["C3697"]
ms.assetid: 2d3f63c4-b7f8-421d-a7a5-2bf17fd054f9
---
# Compiler Error C3697

'qualifier' : cannot use this qualifier on '^'
> 'qualifier' : cannot use this qualifier on '^'

## Remarks

The tracking handle (^) was applied to a qualifier for which it was not designed.

The following sample generates C3697:
## Example

The following example generates C3697:

```cpp
// C3697.cpp
Expand Down
13 changes: 8 additions & 5 deletions docs/error-messages/compiler-errors-2/compiler-error-c3698.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
description: "Learn more about: Compiler Error C3698"
title: "Compiler Error C3698"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C3698"
ms.date: 11/04/2016
f1_keywords: ["C3698"]
helpviewer_keywords: ["C3698"]
ms.assetid: 3c02fb08-7ba4-4637-a06f-19926cb2b5f1
---
# Compiler Error C3698

'type' : cannot use this type as argument of 'operator'
> 'type' : cannot use this type as argument of 'operator'

## Remarks

A managed object was declared incorrectly.

The following sample generates C3698:
## Example

The following example generates C3698:

```cpp
// C3698.cpp
Expand Down
15 changes: 8 additions & 7 deletions docs/error-messages/compiler-errors-2/compiler-error-c3699.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
---
description: "Learn more about: Compiler Error C3699"
title: "Compiler Error C3699"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C3699"
ms.date: 11/04/2016
f1_keywords: ["C3699"]
helpviewer_keywords: ["C3699"]
ms.assetid: 47c29afc-ab8b-4238-adfe-788dd6e00b3b
---
# Compiler Error C3699

'operator' : cannot use this indirection on type 'type'
> 'operator' : cannot use this indirection on type 'type'

## Remarks

An attempt was made to use indirection that is not allowed on `type`.

## Examples

The following sample generates C3699.
The following example generates C3699.

```cpp
// C3699.cpp
Expand All @@ -27,7 +28,7 @@ int main() {
}
```

A trivial property cannot have reference type. See [property](../../extensions/property-cpp-component-extensions.md) for more information. The following sample generates C3699.
A trivial property cannot have reference type. See [property](../../extensions/property-cpp-component-extensions.md) for more information. The following example generates C3699.

```cpp
// C3699_b.cpp
Expand All @@ -38,7 +39,7 @@ ref struct C {
};
```

The equivalent of a "pointer to a pointer" syntax is a handle to a tracking reference. The following sample generates C3699.
The equivalent of a "pointer to a pointer" syntax is a handle to a tracking reference. The following example generates C3699.

```cpp
// C3699_c.cpp
Expand Down
Loading