[libcxx-commits] [clang-tools-extra] [libc] [compiler-rt] [libcxx] [mlir] [llvm] [lld] [clang] [lldb] [libcxxabi] [flang] [clang] static operators should evaluate object argument (PR #68485)
Tianlan Zhou via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jan 4 20:28:42 PST 2024
SuperSodaSea wrote:
Wait a minute, it failes to compile this situation:
```c++
struct Foo {
static int operator()(int a, int b) { return a + b; }
};
void f() {
const Foo foo;
foo(1, 2); // 'this' argument to member function 'operator()' has type 'const Foo', but function is not marked const
}
```
Let me try to fix this...
https://github.com/llvm/llvm-project/pull/68485
More information about the libcxx-commits
mailing list