Skip to content

Fails to build with clang-5 #39

Description

@yurivict

CloudCompare/cork fails with errors like these:

In file included from src/cork.cpp:28:
In file included from src/mesh/mesh.h:48:
In file included from src/mesh/mesh.remesh.tpp:35:
src/mesh/mesh.topoCache.tpp:436:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception'
            ENSURE(vaddr.count(v) > 0);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~

In file included from src/cork.cpp:28:
In file included from src/mesh/mesh.h:48:
In file included from src/mesh/mesh.remesh.tpp:35:
src/mesh/mesh.topoCache.tpp:437:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception'
            ENSURE(count(v->tris, t) == 1);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/util/prelude.h:63:9: note: expanded from macro 'ENSURE'
                throw std::exception("ENSURE FAILED"); \
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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