Skip to content

Conversation

@joaogf
Copy link

@joaogf joaogf commented Sep 4, 2017

No description provided.


gpFormula::gpFormula(){}

# define M_PI 3.14159265358979323846 /* pi */

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since M_PI isn't considered a standard constant, it is "hidden" by default in new compilers.
There is a way to reveal it:

#define _USE_MATH_DEFINES
#include <cmath>

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.

3 participants