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

Proposed solution for issue 101 #102

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

theidealist
Copy link

Update to Serial::setTimeout (and unix/win implementations) to accept timeout by const reference, see: #101.

I do not have this repo building but these changes building right now, but figured the changes were minor and limited enough to do them just by eyeballing them. I hope that this PR is acceptable. If not, let me know and I'll see what I can do to make it so.

Thank

@wjwwood
Copy link
Owner

wjwwood commented Jun 15, 2015

The pull request looks good to me, but I need to think about when to release it since it touches the public API.

@theidealist
Copy link
Author

Glad it looks good, and btw I'm in no rush for the fix.

It's worth noting that while this is a change to public API (it breaks binary ABI), I believe it's a guaranteed non-breaking change at the code level. That is, I can't think of any use case where code that worked previously would not work with this PR. It is always safe to treat a non-const reference (the previous code) as a const ref (the new code).

Thanks again for your support with and attention to the matter!

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

Successfully merging this pull request may close these issues.

2 participants