-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QByteArrayView: add a ctor for arrays of unknown bounds
This appears to not have worked, ever, so add it as a new feature, for view API symmetry, not as a bug-fix. The new constructor is available for all compatible byte types, because it is more like the (ptr) constructor (which is available for all compatible byte types) than the known-size-array constructor (which is only available for char). This does not affect QB/QBV overload sets, since they could exist ambiguity-free only if one of them is a Q_WEAK_OVERLOAD. The GHS compiler doesn't like the CanConvert static_asserts, so comment them out for it. The functionality itself is tested by the fromArrayWithUnknownSize test. [ChangeLog][QtCore][QByteArrayView] Made construction from arrays of unknown size compile. Such arrays will use the const Byte* constructor, determining the size of the array at runtime. Task-number: QTBUG-112746 Pick-to: 6.9 Change-Id: I201033656f123b09644e5de447cd5d7b038e5154 Reviewed-by: Ivan Solovev <[email protected]>
- Loading branch information
Showing
6 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters