Skip to content

Fix #8534#8535

Merged
abadams merged 2 commits into
mainfrom
abadams/fix8534
Dec 23, 2024
Merged

Fix #8534#8535
abadams merged 2 commits into
mainfrom
abadams/fix8534

Conversation

@abadams

@abadams abadams commented Dec 20, 2024

Copy link
Copy Markdown
Member

Fixes #8534

This needs to take src by value, because the helper function mutates
ones of its members in-place.
* another buffer. It may have a different type. */
template<typename T2, int D2, int S2>
static Buffer<T, Dims, InClassDimStorage> make_with_shape_of(const Buffer<T2, D2, S2> &src,
static Buffer<T, Dims, InClassDimStorage> make_with_shape_of(Buffer<T2, D2, S2> src,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We'll probably need to add a NOLINT comment here once we move to clang-tidy-19 but that can (and should) be done in the other CL since exact placement and syntax may be a bit fussy: https://clang.llvm.org/extra/clang-tidy/#suppressing-undesired-diagnostics

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.

Buffer serialization does not match deserialization

2 participants