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

Does not build with Clang #4

Open
NoRePercussions opened this issue Feb 8, 2023 · 0 comments
Open

Does not build with Clang #4

NoRePercussions opened this issue Feb 8, 2023 · 0 comments

Comments

@NoRePercussions
Copy link

Describe the bug
OkapiLib does not build on Mac OS 13.1 / with Clang.

Steps To Reproduce
Compile from source with Clang on Mac OS 13.1. I cannot test other versions of Mac OS.

Expected behavior
std::chrono::high_resolution_clock behaves differently on different machines (in my case, it is an alias of steady_clock). to_time_t is not always a member of steady_clock, so calling on std::chrono::system_clock is a better option to get a time_t.

Some types of captures do not work with all compilers – the solution is to separate out explicit definitions of variable names and then use std::tie to assign values to them.

Versions
OkapiLib 5 (PurdueSigBots maintenance fork)

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