Alf P. Steinbach /Usenet
6/12/2016 2:31:00 PM
On 12.06.2016 16:29, Paavo Helde wrote:
> On 12.06.2016 17:15, Paavo Helde wrote:
>> On 12.06.2016 16:34, Alf P. Steinbach wrote:
>>>
>>> For you /can/ write this:
>>>
>>> if( std::operator==( z, {} ) )
>>> ; // empty statement.
>>>
>>
>> Sorry, this does not work:
>
> Correction: it seems this might accidentally work if one avoids
> including most standard headers (the errors in my previous post appeared
> because of #include <iostream>). However, this is not guaranteed because
> standard headers like <vector> can freely include other standard headers.
>
I can report that it works niceley with `<iostream>` included, with g++
5.1 and MSVC 2015.
And there's no accident about it. :)
Cheers & hth.,
- Alf