Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
dev
-
None
-
3
-
c4f7dba81 (dev), aa8dfc558 (dev)
-
Foundations Sprint 94
Description
The conversion constructors are are all essentially implemented by constructing a QDate that represents the Unix Epoch, and then calling addDays() on it.
The problem is that addDays() is an out-of-line function and therefore the whole conversion isn't constexpr.
Both types involved are Literal Types. It's not acceptable that the conversion between them is not constexpr.
Acceptance criteria:
- all conversions from QDate to std::chrono types, and vice versa, are constexpr
- proven by tests
Attachments
Issue Links
- blocks
-
QTBUG-104111 Modernize comparisons [Core: Date/Time]
- Closed