Included cmath in common.hpp to avoid isnan complaints from the xcode co...

...mpiler
OK I think I know what the problem is here :)

Basically, what the compiler is complaining is probably just the ASSERT_TRUE statement: this->solver_->net() returns a pointer. Could you try changing it to

ASSERT_TRUE(this->solver_->net() != NULL);

and keep other lines as-is (since has_*() already returns bool)? This may solve the lint problem.