title: no overloaded function takes X arguments
body: <p>I'm trying to add another operator to this class.</p>
  
  <p>It already had the operator:</p>
  
  <pre><code>void operator()(model&amp; m, output_container&amp; out, const precalculate&amp; p, const igrid&amp; ig, const precalculate&amp; p_widened, const igrid&amp; ig_widened, const vec&amp; corner1, const vec&amp; corner2, incrementable* increment_me, rng&amp; generator) const;
  </code></pre>
  
  <p>I just want to remove the "incrementable* increment_me" part. So I removed it from the calls and the code itself. For some reason it is giving the below error.</p>
  
  <p>Error:</p>
  
  <pre><code>Error   2   error C2661: 'monte_carlo::monte_carlo' : no overloaded function takes 9 arguments  C:\vina_code\vinaSingleThread\src\main\main.cpp 226 1   vinaSingleThread
  </code></pre>
  
  <p>The new call in header:</p>
  
  <pre><code>void operator()(model&amp; m, output_container&amp; out, const precalculate&amp; p, const igrid&amp; ig, const precalculate&amp; p_widened, const igrid&amp; ig_widened, const vec&amp; corner1, const vec&amp; corner2, rng&amp; generator) const;
  </code></pre>
  
  <p>The new call in cpp:</p>
  
  <pre><code>void monte_carlo::operator()(model&amp; m, output_container&amp; out, const precalculate&amp; p, const igrid&amp; ig, const precalculate&amp; p_widened, const igrid&amp; ig_widened, const vec&amp; corner1, const vec&amp; corner2, rng&amp; generator) const
  {
      vec authentic_v(1000, 1000, 1000); // FIXME? this is here to avoid max_fl/max_fl
      conf_size s = m.get_size();
      change g(s);
      output_type tmp(s, 0);
      tmp.c.randomize(corner1, corner2, generator);
      fl best_e = max_fl;
      quasi_newton quasi_newton_par; quasi_newton_par.max_steps = ssd_par.evals;
  
      VINA_U_FOR(step, num_steps)
      {
          output_type candidate = tmp;
          mutate_conf(candidate.c, m, mutation_amplitude, generator);
          quasi_newton_par(m, p, ig, candidate, g, hunt_cap);
          if(step == 0 || metropolis_accept(tmp.e, candidate.e, temperature, generator))
          {
              tmp = candidate;
  
              m.set(tmp.c); // FIXME? useless?
  
              // FIXME only for very promising ones
              if(tmp.e &lt; best_e || out.size() &lt; num_saved_mins)
              {
                  quasi_newton_par(m, p, ig, tmp, g, authentic_v);
                  m.set(tmp.c); // FIXME? useless?
                  tmp.coords = m.get_heavy_atom_movable_coords();
                  add_to_output_container(out, tmp, min_rmsd, num_saved_mins); // 20 - max size
                  if(tmp.e &lt; best_e)
                      best_e = tmp.e;
              }
          }
      }
      VINA_CHECK(!out.empty());
      VINA_CHECK(out.front().e &lt;= out.back().e); // make sure the sorting worked in the correct order
  
  }
  </code></pre>
  
  <p>What am I doing wrong? Thanks!!</p>
  
  <p>EDIT (sorry about that, should have added this):</p>
  
  <p>main call (line 226):</p>
  
  <pre><code>monte_carlo mc(m, out_cont, prec, ig, prec_widened, ig_widened, corner1, corner2, generator);
  </code></pre>
  
  <p>Here are the full files:</p>
  
  <p>monet_carlo.cpp: <a href="http://pastebin.com/raw.php?i=wM3uVqKt" rel="nofollow">http://pastebin.com/raw.php?i=wM3uVqKt</a></p>
  
  <p>monte_carlo.h: <a href="http://pastebin.com/raw.php?i=WV1fSbmv" rel="nofollow">http://pastebin.com/raw.php?i=WV1fSbmv</a></p>
  
  <p>main: too large to include, look at main call.</p>