You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once a document has been created, I'd like to be able to store it somewhere without having to use a unique pointer. If the Document class had move semantics, I would be able to simply transfer it to my own storage, but it currently doesn't
The reason why is because its default constructor is private, meaning the default move constructor is also marked private by default. The fix would be as simple as adding a public Document(Document&&) noexcept; to the Document class in lunasvg.h and lunasvg::Document::Document(Document&&) noexcept = default; in lunasvg.cpp, so please consider this small improvement.
The text was updated successfully, but these errors were encountered:
I appreciate your suggestion and will carefully review it to determine its suitability for integration into the codebase. Thank you for dedicating your time to report the issue and offer a potential solution.
Once a document has been created, I'd like to be able to store it somewhere without having to use a unique pointer. If the Document class had move semantics, I would be able to simply transfer it to my own storage, but it currently doesn't
The reason why is because its default constructor is private, meaning the default move constructor is also marked private by default. The fix would be as simple as adding a public
Document(Document&&) noexcept;
to the Document class in lunasvg.h andlunasvg::Document::Document(Document&&) noexcept = default;
in lunasvg.cpp, so please consider this small improvement.The text was updated successfully, but these errors were encountered: