title: c++ error: no instance of function template
body: <p>I'am trying to get a variable out of my config.lua file with c++. 
  I've created a Lua-Class from a tutorial to get these variable but I'am getting an error 
  when I try to call the function who gets the variable from config.lua</p>
  
  <p>here are the code snippets:</p>
  
  <pre><code>LuaScript script("config.lua");
  script.get(string("test"));
  </code></pre>
  
  <p>I'am getting the error, "no instance of function template matches the argument list", at the point where I call "script.get(string("test));"</p>
  
  <p>the template function and specialization looks like this:</p>
  
  <pre><code>template&lt;typename T&gt;
  T get( const std::string &amp;variableName )
  {
      if (!L)
      {
          printError(variableName, "Script not loaded");
          return lua_getdefault&lt;T&gt;();
      }
  
      T result;
      if (lua_gettostack(variableName))
      {
          result = lua_get&lt;T&gt;(variableName);
      }else{
          result = lua_getdefault&lt;T&gt;();
      }
  
      clean();
      return result;
  }
  </code></pre>
  
  <p>the specialization:</p>
  
  <pre><code>template&lt;&gt;
  inline std::string LuaScript::lua_get&lt;std::string&gt;( const std::string &amp;variableName )
  {
  std::string s = "null";
  if (lua_isstring(L, -1))
  {
      s = std::string(lua_tostring(L, -1));
  }else{
      printError(variableName, "Not a string");
  }
  
  return s;
  }
  </code></pre>
  
  <p>Just for some more information, I'am coding and compiling with Visual Studio 2012.</p>
  
  <p>thanks for your help :)</p>