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

simpleTimeout breaks compilation on OSX #110

Open
dynamite-ready opened this issue Sep 8, 2015 · 1 comment
Open

simpleTimeout breaks compilation on OSX #110

dynamite-ready opened this issue Sep 8, 2015 · 1 comment

Comments

@dynamite-ready
Copy link

Pretty sure this is closely related to issue #40 - #40

I've recently been working on a project, and have encountered an issue with the very same method on OSX. I'm currently using something like:

device -> object.setTimeout(serial::Timeout::simpleTimeout(1000))

This works fine on Windows, but not on OSX.
OSX fails with the following message:

error: no matching member function for call to 'setTimeout'

If however, I do the following instead:

device -> object.setTimeout(1000, 1000, 1000, 1000, 1000)

The program then compiles fine on OSX.
At a glance, might you be able to guess what I'm doing wrong at the link step?

@dynamite-ready dynamite-ready changed the title simpleTimeout does not compile on OSX simpleTimeout breaks compilation on OSX Sep 8, 2015
@wjwwood
Copy link
Owner

wjwwood commented Dec 3, 2015

The easiest way to show this would be for you to open a pull request which adds the code that fails to compile on OS X to either the example or a new test. Then the CI for the PR will fail and then we have a common system which doesn't work and I can work on a fix.

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

No branches or pull requests

2 participants