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

Fix a couple bugs #91

Merged
merged 2 commits into from
Aug 7, 2023
Merged

Fix a couple bugs #91

merged 2 commits into from
Aug 7, 2023

Conversation

JJL772
Copy link
Contributor

@JJL772 JJL772 commented Jul 17, 2023

These were issues reported by clang-tidy as I was running that on epics-base.

  • AnyScalar::bufferUnsafe() was returning a pointer to the data of an std::string living on the stack.
  • ostringstream::str() returns std::string by value, so we can't keep a pointer to its data without first turning it into an lvalue.
  • split should take the string as a reference to avoid unnecessary copies.
  • Added noexcept to the move ctor/assignment of AnyScalar

@AppVeyorBot
Copy link

Build pvDataCPP 1.0.35 completed (commit c3fa20fd53 by @JJL772)

@mdavidsaver mdavidsaver merged commit eac2a8e into epics-base:master Aug 7, 2023
24 checks passed
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

3 participants