Open
Bug 1484405
Opened 7 years ago
Updated 3 years ago
FunctionTypeTraits.h could provide helpers for common patterns
Categories
(Core :: MFBT, enhancement)
Core
MFBT
Tracking
()
NEW
| Tracking | Status | |
|---|---|---|
| firefox63 | --- | affected |
People
(Reporter: mozbugz, Unassigned)
References
Details
Based on the first uses of FunctionTypeTraits in bug 1482046 and https://phabricator.services.mozilla.com/D3684, it may be worth adding helper traits/macros for common uses, e.g.:
- Does this function return `R`?
- Does this function take exact arguments `As...`? Or convertible from `As...`?
- Does this function have the signature `R(As...)`?
- Does this object have a method named 'X'? With a specific R/As.../R(As...) and/or constness?
- Others?...
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•