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
For Gerrit Dashboard: QTBUG-118221 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
513638,6 | QDate: make conversion from/to chrono types constexpr and noexcept | dev | qt/qtbase | Status: MERGED | +2 | 0 |
516568,3 | QDate: fix condition in conversion between chrono types and Julian Day | dev | qt/qtbase | Status: MERGED | +2 | 0 |