Skip to content

Address mistakes in inline functions cpp - #4872

Merged
Courtney Wales (Court72) merged 1 commit into
MicrosoftDocs:mainfrom
Rageking8:address-mistakes-in-inline-functions-cpp
Jan 17, 2024
Merged

Courtney Wales (Court72) merged 1 commit into
MicrosoftDocs:mainfrom
Rageking8:address-mistakes-in-inline-functions-cpp

Conversation

@Rageking8

Copy link
Copy Markdown
Contributor

Fixes #4871

Tidy up some of the earlier examples, augmented the multiply example to be more explicit about the differences when using a function macro like a proper function. For the last example, there seems to be UB with sqr(c++) which expands to ((c++) * (c++)), hence I wrapped it away into a function and added the part about the inline function square.

@prmerger-automator

Copy link
Copy Markdown
Contributor

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

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 8016acc:

✅ Validation status: passed

File Status Preview URL Details
docs/cpp/inline-functions-cpp.md ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

@prmerger-automator

Copy link
Copy Markdown
Contributor

PRMerger Results

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

@Court72

Copy link
Copy Markdown
Contributor

Tyler Whitney (@TylerMSFT)

Can you review the proposed changes?

When the changes are ready for publication, add a #sign-off comment 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 Jan 2, 2024

@TylerMSFT Tyler Whitney (TylerMSFT) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff - thanks Rageking8!

@TylerMSFT

Copy link
Copy Markdown
Collaborator

#sign-off

@Court72
Courtney Wales (Court72) merged commit 9d8e9e6 into MicrosoftDocs:main Jan 17, 2024
@Rageking8
Rageking8 deleted the address-mistakes-in-inline-functions-cpp branch February 29, 2024 09:16
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.

Example in inline functions page

3 participants