Skip to content

Improve C2469 error reference #5573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Rageking8
Copy link
Contributor

  • Change error message to one with explicit reference to new and void as it seems newer (commit 062031c added this variant to the index page, while the older one is there since the first commit in 2016) and the error does not seem to apply to anything other than operator new with type void.
  • Add "Remarks" heading and tweak its contents to reflect the new error message.
  • Overhaul the existing example and add a new one based on the user's intent (i.e. they specified the wrong allocation type versus they made an invalid attempt to allocate untyped memory (see c++ - Using new on void pointer - Stack Overflow)).
  • Update metadata

Copy link
Contributor

@Rageking8 : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

Copy link
Contributor

Learn Build status updates of commit 72165c3:

✅ Validation status: passed

File Status Preview URL Details
docs/error-messages/compiler-errors-1/compiler-error-c2469.md ✅Succeeded

For more details, please refer to the build report.

Copy link
Contributor

PRMerger Results

Issue Description
File Change Percent This PR contains file(s) with more than 30% file change.

@ttorble
Copy link
Contributor

ttorble commented Jul 23, 2025

@TylerMSFT

Can you review the proposed changes?

IMPORTANT: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@prmerger-automator prmerger-automator bot added the aq-pr-triaged Tracking label for the PR review team label Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants