Skip to content

Will not compile on OX X 10.14 #11

@hyanwong

Description

@hyanwong

when doing pip3 install mplcairo on the new version of OS X (Mojave) I get:

    src/_mplcairo.cpp:42:3: error: call to unavailable function 'visit': introduced in macOS 10.14
      std::visit([&](auto const& aa) -> void {
      ^~~~~~~~~~
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/variant:1524:26: note: candidate function [with _Visitor = (lambda at src/_mplcairo.cpp:42:14), _Vs = <const std::__1::variant<_cairo_antialias, bool> &>] has been explicitly made unavailable
    constexpr decltype(auto) visit(_Visitor&& __visitor, _Vs&&... __vs) {
                             ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions