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

Constructor IrSequence(const microseconds_t, size_t length) with view semantic #88

Open
bengtmartensson opened this issue Jan 28, 2023 · 0 comments

Comments

@bengtmartensson
Copy link
Owner

Presently, the constructor IrSequence(const microseconds_t, size_t length) have "move-semantics", i.e. the first argument will be deleted by the destructor. This is sometimes not desirable. Possibly it violates the "const"-ness?

This behavior is documented, so not "bug".

A possible fix would be to have a base class with no deletion and a derived class which deletes.

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

No branches or pull requests

1 participant