Skip to content

Commit 6b9a3b2

Browse files
TylerMSFTTylerMSFT
authored andcommitted
fix metadata. also fix toc for LINKREPROFULLPATHRSP
1 parent 7418285 commit 6b9a3b2

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

docs/build/reference/linker-options.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "MSVC Linker options"
33
description: "A list of the options supported by the Microsoft LINK linker."
4-
ms.date: 06/03/2024
4+
ms.date: 06/10/2024
55
f1_keywords: ["link"]
66
helpviewer_keywords: ["linker [C++]", "linker [C++], options listed", "libraries [C++], linking to COFF", "LINK tool [C++], linker options"]
77
---
@@ -78,7 +78,7 @@ You can use the [`comment`](../../preprocessor/comment-c-cpp.md) pragma to speci
7878
| [`/LARGEADDRESSAWARE`](largeaddressaware-handle-large-addresses.md) | Tells the compiler that the application supports addresses larger than 2 gigabytes |
7979
| [`/LIBPATH`](libpath-additional-libpath.md) | Specifies a path to search before the environmental library path. |
8080
| [`/LINKREPRO`](linkrepro.md) | Specifies a path to generate link repro artifacts in. |
81-
| [`LINKREPROFULLPATHRSP`](link-repro-full-path-rsp.md) | Generates a response file containing the absolute paths to all the files that the linker took as input. |
81+
| [`/LINKREPROFULLPATHRSP`](link-repro-full-path-rsp.md) | Generates a response file containing the absolute paths to all the files that the linker took as input. |
8282
| [`/LINKREPROTARGET`](linkreprotarget.md) | Generates a link repro only when producing the specified target.<sup>16.1</sup> |
8383
| [`/LTCG`](ltcg-link-time-code-generation.md) | Specifies link-time code generation. |
8484
| [`/MACHINE`](machine-specify-target-platform.md) | Specifies the target platform. |

docs/build/toc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,6 @@ items:
640640
href: ../build/reference/kernel-create-kernel-mode-binary.md
641641
- name: /link (Pass options to linker)
642642
href: ../build/reference/link-pass-options-to-linker.md
643-
- name: /LINKREPROFULLPATHRSP (Generate file containing absolute paths of linked files)
644-
href: ../build/reference/link-repro-full-path-rsp.md
645643
- name: /LN (Create MSIL module)
646644
href: ../build/reference/ln-create-msil-module.md
647645
- name: /MD, /MT, /LD (Use Run-time library)
@@ -1027,6 +1025,8 @@ items:
10271025
href: ../build/reference/libpath-additional-libpath.md
10281026
- name: /LINKREPRO (Link repro directory name)
10291027
href: ../build/reference/linkrepro.md
1028+
- name: /LINKREPROFULLPATHRSP (Generate file containing absolute paths of linked files)
1029+
href: ../build/reference/link-repro-full-path-rsp.md
10301030
- name: /LINKREPROTARGET (Link repro file name)
10311031
href: ../build/reference/linkreprotarget.md
10321032
- name: /LTCG (Link-time code generation)

docs/cpp/casting.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
---
2-
description: "Learn more about: Casting in C++"
32
title: "Casting"
3+
description: "Learn more about: Casting in C++"
44
ms.date: 6/11/2024
55
helpviewer_keywords: ["casting [C++]", "coercion [C++]", "virtual functions [C++], in derived classes [C++]", "static cast operator", "dynamic cast operator", "polymorphic classes [C++]", "classes [C++], polymorphism"]
66
ai.
77
---
88
# Casting
99

10-
The C++ language provides that if a class is derived from a base class containing virtual functions, a pointer to that base class type can be used to call virtual functions in the derived class object. A class containing virtual functions is sometimes called a "polymorphic class".
10+
The C++ language provides that if a class is derived from a base class containing virtual functions, a pointer to that base class type can be used to call virtual functions in the derived class object. A class containing virtual functions is sometimes called a "polymorphic class."
1111

1212
![Diagram of a class hierarchy where C derives from B, which derives from A.](../cpp/media/vc38zz1.gif "Class hierarchy")<br/>
1313
Class hierarchy
1414

1515
An object of type `C` could be visualized as shown in the following figure.
1616

1717
![Diagram of Class C with subobjects B and A.](../cpp/media/vc38zz2.gif "Class C with subobjects B and A") <br/>
18-
Class C with sub-objects B and A
18+
Class C with subobjects B and A
1919

20-
Given an instance of class `C`, there is a `B` subobject and an `A` subobject. The instance of `C`, including the `A` and `B` subobjects, is the "complete object."
20+
Given an instance of class `C`, there's a `B` subobject and an `A` subobject. The instance of `C`, including the `A` and `B` subobjects, is the "complete object."
2121

22-
Since a derived class completely contains the definitions of all the base classes from which it is derived, it is safe to cast a pointer to any of the base classes (an upcast). Given a pointer to a base class, it may be safe to cast the pointer to an instance of a derived class (downcast). The actual object is said to be the "complete object." The pointer to the base class is said to point to a "subobject" of the complete object. For example, consider the class hierarchy shown in the following figure.
22+
Since a derived class completely contains the definitions of all the base classes from which it's derived, it's safe to cast a pointer to any of the base classes (an upcast). Given a pointer to a base class, it may be safe to cast the pointer to an instance of a derived class (downcast). The actual object is said to be the "complete object." The pointer to the base class is said to point to a "subobject" of the complete object. For example, consider the class hierarchy shown in the following figure.
2323

24-
Using run-time type information, it is possible to check whether a pointer actually points to a complete object and can be safely cast to point to another object in its hierarchy. Use the [dynamic_cast](../cpp/dynamic-cast-operator.md) operator to make safe casts. It performs the run-time check necessary to ensure that the operation is safe.
24+
Using run-time type information, it's possible to check whether a pointer actually points to a complete object and can be safely cast to point to another object in its hierarchy. Use the [dynamic_cast](../cpp/dynamic-cast-operator.md) operator to make safe casts. It performs the run-time check necessary to ensure that the operation is safe.
2525

26-
For conversion of nonpolymorphic types, you can use the [static_cast](../cpp/static-cast-operator.md) operator (this topic explains the difference between static and dynamic casting conversions, and when it is appropriate to use each).
26+
For conversion of nonpolymorphic types, you can use the [static_cast](../cpp/static-cast-operator.md) operator (this topic explains the difference between static and dynamic casting conversions, and when it's appropriate to use each).
2727

2828
The following example demonstrates the use of the `dynamic_cast` and `static_cast` operators:
2929

0 commit comments

Comments
 (0)