[llvm-bugs] [Bug 52219] invocation of next_permutation will not compile when using libc++

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 19 09:27:04 PDT 2021


Joe Loser <joeloser93 at gmail.com> changed:

           What    |Removed                     |Added
         Resolution|---                         |INVALID
                 CC|                            |joeloser93 at gmail.com
             Status|NEW                         |RESOLVED

--- Comment #1 from Joe Loser <joeloser93 at gmail.com> ---
`libc++` is correct I believe to fail to compile this program. The `operator<`
needs to be marked `const`.

https://godbolt.org/z/cMGG4v51a is a working link showing that marking
`operator<` as `const` successfully compiles the program.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20211019/720b8d1a/attachment.html>

More information about the llvm-bugs mailing list