#67682 closed defect (fixed)

openimageio: builds fail, due to Cxx17 features used by openvdb

Reported by: mascguy (Christopher Nielsen) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: openimageio

Description

Specifically, if constexpr(xxx) - aka, a "constexpr if statement" - requires Cxx17:

In file included from /opt/local/include/openvdb/tree/Tree.h:21:
/opt/local/include/openvdb/tree/ValueAccessor.h:685:12: error: expected '(' after 'if'
        if constexpr ((std::is_same<NodeT, NodeType>::value)) {
           ^

https://en.cppreference.com/w/cpp/language/if

Change History (1)

comment:1 Changed 17 months ago by Christopher Nielsen <mascguy@…>

Resolution: fixed
Status: assignedclosed

In 5dba3b885391a39ffbf4889d728c57cd0e78aaad/macports-ports (master):

openimageio: bump cxx_std to 2017, for openvdb
Fixes: #67682

Note: See TracTickets for help on using tickets.