<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/208236>208236</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [libc++] desugars_to for totally ordered less-than tag doesn't handle ref qualified types properly
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            libc++,
            performance
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ldionne
      </td>
    </tr>
</table>

<pre>
    https://github.com/llvm/llvm-project/blob/7e2e37536167a96e61f077d993ddc7106e372596/libcxx/include/__algorithm/comp.h#L50

If `_Tp` is ref qualified, `is_integral` is false, and it should be true. We should add test coverage to catch that too.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUks-K3DwQxJ9Gvog1cmss2Qcf9g-GD75jIMdBVrdtBY3lSO1l5-2Dh12SHAMCQZdUDb8qV0pYNqJBtC-ifavcwWvKQ8SQto2qKeF9WJn3IvSzgFHAuARej6n26SZgjPH963rac_pBngWMU0yTgNESkLatNo2xrjdkmllZi32vEb1tlCFtoe3NaRAm__EhYAybjweSgPF6dXFJOfB6bvDptterAP1_q4R6Fur5v1kKo67fdmGUDEVmmuXPw8UwB0IBr6cayjVsTEt28fPV7GKhU3UbysCyrOmIKCeSnA-q5Xf6GjlEyVRY-vRO2S0kOUnv2K-SV8eSU6orHDT2uncVDY3tdAva2L5aB7C9wrkx2CB0RL6zpFFji7ZpDRlbhQEUGGVV17TNRfe1Im_P3wiXzvZdLy6Kbi7E-mRbp7xUoZSDBlAdaFNFN1Esj9QATnoCXh4HBLwKgJ3ynPLNbZ7OWftW5eGR0nQsRVxUDIXLb28OHB8d-MOqfZNI5VhcLldOck5ZcmIX412mjJQJZaRSnnh1m2S3SExUNgGW5eo2jPR3JJLvOxW557RTjvfqyPHfm_VgUASMnxjeB_gVAAD__3rN4VI">