-
-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move comparison operators to subclasses of BCOffsetBase
Summary: Newer compilers get unhappy with this use of comparison operators and CRTP. They can't seem to wrap their heads around inferring the T in `BCOffsetBase<T>` for these operators, something about how in C++20 the operators are tried twice, once with LHS vs RHS and once with RHS vs LHS. The easy solution is to move the operators to the concrete subclasses and call it a day. GCC also doesn't like the use of the `auto` return type so that's made explicit. Reviewed By: mpage Differential Revision: D48442851 fbshipit-source-id: 60aed0ef88d7ee1a85f14be87f7ce1bdbf682e39
- Loading branch information
1 parent
922bcd6
commit fb84e34
Showing
1 changed file
with
40 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters