Skip to content

[cyacc] Example given is wrong, should use turbofish #31

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

Closed
lord-ne opened this issue Jun 12, 2022 · 0 comments
Closed

[cyacc] Example given is wrong, should use turbofish #31

lord-ne opened this issue Jun 12, 2022 · 0 comments

Comments

@lord-ne
Copy link

lord-ne commented Jun 12, 2022

In the cycle-accurate implementation (#28), the example code in the README has delay_ms<1000000>();. However, if you actually try to compile that line, you get the following error:

error: comparison operators cannot be chained:
  |
9 |     delay_ms<1000000>();
  |             ^       ^
  |
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
  |
9 |     delay_ms::<1000000>();
  |             ++

Changing it to delay_ms::<1000000>(); fixes the issue. Thus, that example (and any others) should be updated to use the "turbofish" operator ::< >

bombela added a commit to bombela/avr-delay that referenced this issue Jun 12, 2022
@lord-ne lord-ne closed this as completed Jun 17, 2022
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

1 participant