[Development] Qt UDL operators

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Wed Apr 6 10:54:38 CEST 2022


Hi,

On 05/04/2022 14:28, Sona Kurazyan wrote:
>> I'm not sure how this work: unless the new _s takes another kind input
>> (e.g. number literals), you can't add it no matter what, as users under
>> "using namespace Qt;" would then get a conflict...?
>>
> Right, it will work only if the types of the literals with the same name differ, so we can add e.g. _s for seconds (or something else) in future.

Well, if that's the case, they can _also_ both be added to the "free" 
_qX versions, before their deprecation kicks in.

My 2 c,
-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.qt-project.org/pipermail/development/attachments/20220406/6a8ad8d6/attachment.bin>


More information about the Development mailing list