support optional comparisons with different but comparable types (#62890)
authorMichael Dagitses <mikeyd@fb.com>
Thu, 19 Aug 2021 04:39:18 +0000 (21:39 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 19 Aug 2021 04:40:38 +0000 (21:40 -0700)
commit773c8b6440eee7d903f3d3a80d1fa866370b1ba2
tree26554fe8d4725a143ca69f24a97a77425b91ab81
parent2544664e5470cd5012bd88d07fb573aa31ca8c60
support optional comparisons with different but comparable types (#62890)

Summary:
Fixes https://github.com/pytorch/pytorch/issues/62565

Pull Request resolved: https://github.com/pytorch/pytorch/pull/62890

Reviewed By: ejguan

Differential Revision: D30396008

Pulled By: dagitses

fbshipit-source-id: fca02207509f882973d54484f89c4d116505fc66
c10/test/util/optional_test.cpp
c10/util/Optional.h