<div dir="ltr">Samuel,<div><br></div><div>Can you tell me what version of Clang you are using?  I believed an exemption was added to void returning overloaded comparisons in r209186.</div><div><br></div><div>Richard</div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jul 13, 2014 at 2:50 PM, Samuel Williams <span dir="ltr"><<a href="mailto:space.ship.traveller@gmail.com" target="_blank">space.ship.traveller@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Csaba, a good question,<br>
<br>
it is for unit testing syntax similar to rspec, e.g.<br>
<br>
expect(value).to_be == some_other_value<br>
<br>
Internally, the comparison is done and if it isn't valid, the unit test is marked as failed. The same with other operators and function calls.<br>
<br>
Kind regards,<br>
Samuel<div class="im HOEnZb"><br>
<br>
On 14/07/14 03:35, Csaba Raduly wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Samuel,<br>
<br>
On Sat, Jul 12, 2014 at 7:34 AM, Samuel Williams  wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi.<br>
<br>
I'm implementing<br>
<br>
class Foo {<br>
     void operator==(...) {}<br>
}<br>
<br>
for a DSL and getting errors:<br>
<br>
warning: equality comparison result unused [-Wunused-comparison]<br>
<br>
I feel this error is not appropriate in such circumstances?<br>
</blockquote>
What's the point of implementing operator== (equality comparison!) if<br>
you can't get the result?<br>
<br>
The return type of operator== should be bool.<br>
<br>
Csaba<br>
</blockquote>
<br></div><div class="HOEnZb"><div class="h5">
______________________________<u></u>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div>