Skip to content

Conversation

veox
Copy link
Contributor

@veox veox commented May 4, 2014

Comparing argv[1] == "-h" doesn't work, since both are
pointers to a char array. Type-casting one of them
overloads operator== and allows using the conditional.

Adding -Wall, just in case.

P.S. Should <string> be explicitly included?..

Comparing `argv[1] == "-h"` doesn't work, since both are
pointers to a char array. Type-casting one of them
overloads `operator==` and allows using the conditional.

Adding `-Wall`, just in case.

P.S. Should <string> be explicitly included?..
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

Successfully merging this pull request may close these issues.

1 participant