Try to use some C++ Wrappers like as https://github.com/naleksiev/mtlpp
Post
Replies
Boosts
Views
Activity
Hi! thank you for your responce,
new CMake:
`target_compile_features(${MODULE_NAME} PRIVATE cxx_std_20)
target_compile_options(${MODULE_NAME}
PRIVATE
"-Wno-error=gnu-anonymous-struct"
"-Wno-error=dtor-name"
"-Wno-error=old-style-cast"
"-Wno-gnu"
...
"-Wno-error=deprecated-declarations"
)`
Anonymous types declared in an anonymous union are an extension:
MTLAccelerationStructure.hpp:
union { struct { float x; float y; float z; };
ISO C++ requires the name after '::' to be found in the same scope as the name before '::'
NSSharedPtr.hpp
template <class _Class> _NS_INLINE NS::SharedPtr<_Class>::~SharedPtr() __attribute__((no_sanitize("undefined")))