[Development] std::atomic

Henry Skoglund fromqt at tungware.se
Fri Oct 21 00:37:19 CEST 2016


On 2016-10-21 00:11, Sergio Martins wrote:
> 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.

If you click on "DETAILS" there is a testcase attached. Also, I just 
tested on Visual Studio 2015 Update 3 and it still fails. /Rgrds Henry





More information about the Development mailing list