Skip to content

Conversation

@vadz
Copy link
Collaborator

@vadz vadz commented Oct 2, 2022

Implement move semantics for xml::attributes

This works better if the empty object uses empty (null) impl pointer, but this wasn't the convention used in xmlwrapp, where the pointer was always valid so far, even for the null objects. I'm not completely sure if we really want to change this but OTOH using null pointer for an empty object seems much more natural.

@vslavik What do you think, should I continue with changing the other classes in the same way?

@vadz vadz changed the title move semantics DRAFT: Start adding move semantics support Oct 2, 2022
This allows to move them cheaply (or at least cheaper than by copying
everything).

Switch to representing null pimpl_ pointer for representing the "empty"
state, as is more compatible with move semantics, but this required
adding checks for the pointer being null in a number of places.
@vadz vadz marked this pull request as draft July 23, 2025 13:21
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.

1 participant