[Development] std::atomic

Sergio Martins sergio.martins at kdab.com
Fri Oct 21 00:11:58 CEST 2016


On 2016-10-20 21:43, Thiago Macieira wrote:
> Em quinta-feira, 20 de outubro de 2016, às 17:28:39 PDT, Philippe 
> escreveu:
>> std::atomic is used as underlying implementation for the the Qt atomic
>> API with CLang on Mac.
>> But why not with Visual Studio 2015? You will certainly mention some 
>> bug,
>> but then where is the problem? (shortly)
> 
> Because the Microsoft compiler does not support constexpr properly. See
> https://connect.microsoft.com/VisualStudio/feedback/details/2011648
> 
> I haven't tested Update 3 to see if that is fixed.

Do you have a testcase for this bug ?
I couldn't reproduce with Update2 by using a class with constexpr ctor 
and an array member, so I think I'm not testing it correctly.

Regards,
-- 
Sérgio Martins | sergio.martins at kdab.com | Senior Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel: Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - The Qt, C++ and OpenGL Experts



More information about the Development mailing list