[Development] Proposal: adding Q_DECL_NOEXCEPT to many methods

marius.storm-olsen at nokia.com marius.storm-olsen at nokia.com
Thu Aug 2 19:39:31 CEST 2012


On 02/08/2012 12:32, ext marius.storm-olsen at nokia.com wrote:
> On 02/08/2012 12:19, ext Thiago Macieira wrote:
>> On quinta-feira, 2 de agosto de 2012 17.15.26, marius.storm-olsen at nokia.com
>> wrote:
>>> So, perhaps we can identify the cases where they are similar and use
>>> that with MSVC until proper noexcept()/noexcept(<type>) support is provided?
>>
>> Yes. I can identify where they are similar: nowhere.
...
> So, i.o.w. throw() == __declspec(nothrow), which in turn means
...
> So no, throw() will effectively remove all checking for exceptions.

I see that we cannot use throw(<type>) though, since MSVC simply turns 
that into throw(...), which is not what you want.

-- 
.marius



More information about the Development mailing list