title: Too many arguments to function call, expected 0, have 1. "InfInt.h" toString function
body: <p>I am using c++ to solve a problem. I need to find the factorial of 100 and find the sum of its digits. Because of the limitation of the variables in c++ I am using a header file called infint (<a href="https://code.google.com/p/infint/" rel="nofollow">https://code.google.com/p/infint/</a>). It has its own function to convert an InfInt to a string. However I am getting this error:"Too many arguments to function call, expected 0, have 1." I am using xcode also.</p>
  
  <p>My code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include "InfInt.h"
  #define INFINT_USE_EXCEPTIONS
  using namespace std;
  int main() {
      InfInt result=1;
      for (int x=100;x&gt;0;x--) {
          result*=x;
      }
      cout&lt;&lt;result&lt;&lt;endl;
      InfInt I;
      string sresult = I.toString(result);
      cout&lt;&lt;sresult&lt;&lt;endl;
  
      return 0;
  }
  </code></pre>
  
  <p>I cannot include the full header code but you can download it from the link.</p>
  
  <p>Part of header for toString:</p>
  
  <pre><code>inline std::string InfInt::toString() const
  {//PROFILED_SCOPE
      std::ostringstream oss;
      oss &lt;&lt; *this;
      return oss.str();
  }
  </code></pre>
  
  <p>There are other references to the method in the header file but I believe this is the only important part.</p>