title: Overloading operator for a function call
body: <p>Is it possible to overload an operator for only one function. I want to override the '->' operator, but only when it is called with the print function ( ->print() ). I understand this is a weird request, but I am working on fulfilling a certain API, and I would need something like this.</p>
  
  <p>For example:</p>
  
  <pre><code>Cat cat;
  cat.walk();
  cat-&gt;print(); //I want to overload only this call
  </code></pre>
  
  <p>However, I don't want to overload the '->' operator for all cases. For example:</p>
  
  <pre><code>Cat* cat;
  cat-&gt;walk(); //this should work normally
  cat-&gt;print(); //this wouldn't call the print() function, 
                //since I overloaded cat-&gt;print()
  </code></pre>