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

Cmake for the "mutate" branch needs C++ 14 support #33

Open
jamesguo71 opened this issue May 20, 2022 · 0 comments
Open

Cmake for the "mutate" branch needs C++ 14 support #33

jamesguo71 opened this issue May 20, 2022 · 0 comments

Comments

@jamesguo71
Copy link

On macOS, llvm 13.

I was making my way through the tutorial and had a build error in the "mutate branch", beginning with:

/opt/homebrew/opt/llvm/include/llvm/Support/SwapByteOrder.h:152:13: error: no template named 'enable_if_t' in namespace 'std'; did you mean 'enable_if'?
inline std::enable_if_t<std::is_enum::value, T> getSwappedBytes(T C) {
~~~~~^~~~~~~~~~~
enable_if

Turns out this construct is only supported from C++ 14. So I added this to the Cmake file:

set(CMAKE_CXX_STANDARD 14)

and fixed the build error.

Hope this helps.

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