title: Operator Overloading in C++ as int + obj
body: <p>I have following class:-</p>
  
  <pre><code>class myclass
  {
      size_t st;
  
      myclass(size_t pst)
      {
          st=pst;
      }
  
      operator int()
      {
          return (int)st;
      }
  
      int operator+(int intojb)
      {
          return int(st) + intobj; 
      }
  
  };
  </code></pre>
  
  <p>this works fine as long as I use it like this:-</p>
  
  <pre><code>char* src="This is test string";
  int i= myclass(strlen(src)) + 100;
  </code></pre>
  
  <p>but I am unable to do this:-</p>
  
  <pre><code>int i= 100+ myclass(strlen(src));
  </code></pre>
  
  <p>Any idea, how can I achieve this??</p>