[MacPorts] #67682: openimageio: builds fail, due to Cxx17 features used by openvdb

MacPorts noreply at macports.org
Sat Jun 24 16:43:01 UTC 2023


#67682: openimageio: builds fail, due to Cxx17 features used by openvdb
---------------------+-------------------------
 Reporter:  mascguy  |      Owner:  mascguy
     Type:  defect   |     Status:  assigned
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:  2.8.1
 Keywords:           |       Port:  openimageio
---------------------+-------------------------
 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

-- 
Ticket URL: <https://trac.macports.org/ticket/67682>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list