Skip to content
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

Return strings by value for NRVO #71

Merged
merged 1 commit into from
Dec 2, 2023
Merged

Return strings by value for NRVO #71

merged 1 commit into from
Dec 2, 2023

Conversation

dario-loi
Copy link
Contributor

Simple fix for the problems detailed in #70.

Also fixed:

  • An unnecessary pass-by-const-ref in cpu.h (int64_t is the same size as a reference but passing by value removes an indirection and allows register use across most ABIs)
  • cstdint was not included in cpuid.h which threw warnings on my IDE

Let me know if there are problems to fix before merge, right now tests and format checks are passing.

@lfreist lfreist self-requested a review December 2, 2023 14:00
@lfreist lfreist merged commit 10d87e8 into lfreist:main Dec 2, 2023
lfreist added a commit that referenced this pull request Dec 9, 2023
lfreist added a commit that referenced this pull request Dec 10, 2023
* Revert "Return strings by value for NRVO (#71)"

This reverts commit 10d87e8.

* Update cpu.h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants