Closed Bug 1677092 Opened 4 years ago Closed 4 years ago

Add `constexpr` `AnyOf`

Categories

(Core :: MFBT, task)

task

Tracking

()

RESOLVED FIXED
85 Branch
Tracking Status
firefox85 --- fixed

People

(Reporter: mbrodesser-Igalia, Assigned: mbrodesser-Igalia)

References

Details

Attachments

(1 file)

The constexpr version is only supported by C++20.

Blocks: 1669050

(In reply to Mirko Brodesser (:mbrodesser) from comment #0)

The constexpr version is only supported by C++20.

You mean std::any_of is only constexpr in C++20, and so we should add a constexpr mozilla::AnyOf until we upgrade to C++20?

(In reply to Simon Giesecke [:sg] [he/him] from comment #1)

(In reply to Mirko Brodesser (:mbrodesser) from comment #0)

The constexpr version is only supported by C++20.

You mean std::any_of is only constexpr in C++20, and so we should add a constexpr mozilla::AnyOf until we upgrade to C++20?

Exactly. Will create a review soon.

The STL supports it only with C++20.

Flags: needinfo?(mbrodesser)
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: