Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REQUIRE( foo(1.0), 1.0 ) compiles but I meant REQUIRE( foo(1.0) == 1.0 ) #35

Closed
doctorlove opened this issue Jun 1, 2011 · 3 comments
Closed

Comments

@doctorlove
Copy link

Can it give me a compile error when I've done something stoopid?

@philsquared
Copy link
Collaborator

That shouldn't compile.
I just checked it (XCode - using GCC 4.2) and it certainly doesn't for me.
What compiler are you using?
Is there anything special about foo? I presume it is just a function?

@doctorlove
Copy link
Author

I'd better dig out exactly what I wrote. It's VS2010.

Of courser, I can't reproduce it now. I get
1>c:\src\cqf\project\hjm\hjm\tests.cpp(210): warning C4002: too many actual
parameters for macro 'REQUIRE'
1>c:\src\cqf\project\hjm\hjm\tests.cpp(210): warning C4800: 'double' :
forcing value to bool 'true' or 'false' (performance warning)

foo was a free function.

I'll report the exact code if it happens again. Very odd.

On 2 June 2011 08:45, philsquared <
reply@reply.github.com>wrote:

That shouldn't compile.
I just checked it (XCode - using GCC 4.2) and it certainly doesn't for me.
What compiler are you using?
Is there anything special about foo? I presume it is just a function?

Reply to this email directly or view it on GitHub:
#35 (comment)

@philsquared
Copy link
Collaborator

Closing since I've not seen anything. Please re-open if you see it again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants