mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
Summary: @public I would like to get rid of implicit conversions between `YGValue` and `CompactValue`, because they don’t come for free. That’s why I am adding `CompactValue` specific overrides for `YGResolveValue` and `YGValueEqual`, that do explicit casts. Up the commit stack, we will be able mark both `CompactValue(const YGValue&)` and `CompactValue::operator YGValue()` as `explicit`. Reviewed By: SidharthGuglani Differential Revision: D14598447 fbshipit-source-id: 75dc15cefb2dddcf8def891c5fb37893cacd9d46