lingjf / h2unit

Light-weight (as light as hydrogen) unit test framework for C/C++, since 2012
Apache License 2.0
10 stars 6 forks source link

H2EQ_MATH with pointer type parameters, compile failed #7

Closed lingjf closed 11 years ago

lingjf commented 11 years ago

{ char* rv = NULL; H2EQ_MATH(NULL, rv); }

compile failed due to can't cast char* to double.

lingjf commented 11 years ago

C++ overload (not override) feature should be applied. http://www.learncpp.com/cpp-tutorial/76-function-overloading/

lingjf commented 11 years ago

Fixed! and I have wrote a BLOG about this issue.

https://github.com/lingjf/h2unit/wiki/Design-H2EQ_MATH