OpenTimelineIO / OpenTimelineIO-Swift-Bindings

Swift bindings for the OpenTimelineIO Library (http://opentimeline.io)
http://opentimeline.io
Apache License 2.0
19 stars 11 forks source link

Use std::type_index for map index instead #39

Closed jchen9 closed 1 year ago

jchen9 commented 1 year ago

This change fixes the issue that an AnyDictionary in metadata cannot be match to any entry in the function_map in Apple Silicon (ARM) build, because typeid() returns different addresses for AnyDictionary.

It ends up being unknown and values cannot be read in the application code.

Without the fix, the test case fails in Xcode, even though swift test doesn't fail from the command line.

linux-foundation-easycla[bot] commented 1 year ago

CLA Not Signed