c++ - error: no matching function call for call to - compiles with VS2013 though -


itemprop = "text">

I'm writing a code running on several pieces, I work with code when compiling with Visual Studio 2013 I was doing this, but now when I try to compile it for Android, I get the error mentioned in this title.

The code that I am trying to compile is like this:

  #pragma once #include & lt; String & gt; Square StringUtils {public: static std :: string readFile (const std :: string and filename); Fixed std :: string & amp; TrimStart (Study :: String & amp;); Fixed std :: string & amp; TrimEnd (std: string & amp;); Fixed std :: string & amp; Trim (std :: string & amp;); };   

The above methods are described in error. For example, I try to call the trim () method like this:

  std :: string TRData :: readValue (std :: ifstream And ifs) {Std :: string line; Std :: getline (ifs, line); Int colon = line.find_first_of (':'); Assert (colon! = Std :: string :: npos); Return StringUtils :: trim (line.substr (colon + 1)); }   

The error message indicates the last line in this method. How can I fix this problem? As I said, it compiles with VS 2013, but does not use the default NDK Toolchain for Android.

EDIT: Forgot to paste the correct error message, here it is:

  Error: 'StringUtils :: trim (std :: basic_string & lt; char &   

You do not have to match your function Signature change required

  Fixed std :: string & amp; Trim (const std :: string & amp; amp;;); // ^^^^^   

To pass the evaluations (temporarily from substr () , return to your function.

Apart from this, the price passing through the bus will not work anymore like this

  Fixed std :: string trim (const std :: string & amp; // ^   

I recommend doing this in accordance with your other actions.


Optionally use a value to call your function < / P>

  std :: string part = line.s Ubstr (colon + 1); return StringUtils :: trim (part);    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -