You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very helpful to having examples on what is allowed in regular_invocable.
Here is a draft:
int g;
int f1(int* p, int& r) { // regular_invocable
++g;
++*p;
// r is not modified
return 0;
}
int f2(int* p, int& r) { // not regular_invocable
++r;
return 0;
}
struct F {
mutable int m;
int* p;
int& r;
int operator()() const { // regular_invocable
++m;
++*p;
++r;
return 0;
}
};
Please note that I do not understand regular_invocable well (so I request to add examples ;) ) and the regular_invocable/non-regular_invocable distinction may be incorrest.
It would be very helpful to having examples on what is allowed in
regular_invocable
.Here is a draft:
Please note that I do not understand
regular_invocable
well (so I request to add examples ;) ) and theregular_invocable
/non-regular_invocable
distinction may be incorrest.This is related to GB206 (cplusplus/nbballot#204).
The text was updated successfully, but these errors were encountered: