title: expression preceding parentheses of apparent call must have (pointer-to-) function type
body: <p>I am learning C++ templates on vs2015 community.Here is my code, I want to define a template class and call the member function in the <code>main()</code> function.</p>
  <pre><code>template &lt;typename T&gt;
  class Arithmetic {
      T _a;
      T _b;
      Arithmetic() {};
  public
      Arithmetic(T a, T b) :_a(a), _b(b) {};
      T max const() { return _a + _b; };
      T minus const() { return _a - _b; };
  };
  
  int main() {
      Arithmetic&lt;int&gt; ar(5,6);
      cout &lt;&lt; ar.max() &lt;&lt; endl;
  }
  </code></pre>
  <p>When I build this program, I get error at the last line. It says:</p>
  <blockquote>
  <p>Expression preceding parentheses of apparent call must have (pointer-to-) function type</p>
  </blockquote>
  <p>What should I do?</p>