title: C++ no instance of constructor matches the argument list argument types are: (std::string, double)
body: <p>Hello i'm learning from a littlebit bad book and when i finished the chapter i didnt find anything about this error and i tried aprox one week to fix it but i didnt afford it so i came here xd. Here some code the "declaration": </p>
  
  <pre><code>class variable {
  public:
      string name;
      double value;
  };
  </code></pre>
  
  <p>And the: </p>
  
  <pre><code>    double define_name(string var, double val)
  {
      if (is_declared(var)) error(var, "declared twice");
      var_table.push_back(variable(var,val));
      return val;
  }
  </code></pre>
  
  <p>This is the code where i got the following error in visual studio underlining the "variable " </p>
  
  <p><strong>(E0289) no instance of constructor "varaible::variable" matches the argument list</strong></p>