Skip to content

meta.hpp breaks ObjC++ compilation due to usage of reserved keyword id #1855

@barracuda156

Description

@barracuda156

contour uses range-v3 headers, and the build fails due to included meta.hpp on ObjC++ source:

In file included from /opt/local/include/range/v3/view/iota.hpp:22,
                 from /opt/local/var/macports/build/contour-1c014ec5/work/contour-0.6.1.7494/src/crispy/utils.h:6,
                 from /opt/local/var/macports/build/contour-1c014ec5/work/contour-0.6.1.7494/src/text_shaper/coretext_locator.mm:2:
/opt/local/include/meta/meta.hpp:587:31: error: type/value mismatch at argument 1 in template parameter list for 'template<template<class ...> class C, class ... Ts> struct meta::defer'
  587 |         using id = defer<id, T>;
      |                               ^
/opt/local/include/meta/meta.hpp:587:31: note:   expected a class template, got 'objc_object*'

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