Compilation error for using Point


#1

Hi,
For the following line of code, Point& needleCenter, I am getting error, “Use of class template juce::Point requires template arguments MeterComponent.h”. Can anyone help me to how to resolve this.

Regards
symadpet


#2

Like the error says, you need to give it a template argument. Maybe look at one of the many thousands of places in the codebase where the Point class gets used, and you’ll get the gist (!)


#3

Thank you very much! I got it resolved.


#4
typedef Point <int> Pointi;
typedef Point <float> Pointf;