Skip to content

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

@jamesguo71

Description

@jamesguo71

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions