Commit d6e0ca4
authored
Clang - Fix use of overloaded operator '+' is ambiguous error (#8516)
## Why
Resolve the error that shows up when compiled with Clang version 22.1.2
and newer: `"use of overloaded operator '+' is ambiguous."`.
## What
Cast each literal to T (+ T(2.0f), + T(0.0f), + T(4.0f), + T(6.0f)) so
the addend has the same type as the operand. This removes the overload
ambiguity without changing the values being tested.
## Validation
Validated locally in the OS.2020 that all related errors dropped in
Clang build.1 parent 8ed7088 commit d6e0ca4
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1349 | 1349 | | |
1350 | 1350 | | |
1351 | 1351 | | |
1352 | | - | |
| 1352 | + | |
1353 | 1353 | | |
1354 | | - | |
| 1354 | + | |
1355 | 1355 | | |
1356 | 1356 | | |
1357 | | - | |
| 1357 | + | |
1358 | 1358 | | |
1359 | | - | |
| 1359 | + | |
1360 | 1360 | | |
1361 | 1361 | | |
1362 | 1362 | | |
| |||
0 commit comments