Home » Community » Newbie corner » errors re strings
errors re strings [message #46364] |
Fri, 29 April 2016 08:46  |
nlneilson
Messages: 644 Registered: January 2010 Location: U.S. California. Mojave &...
|
Contributor |
|
|
(647): error C2664: 'std::basic_string<char,std::char_traits<char>,std::allocator <char>>::basic_string(std::initializer_list<_Elem>,const std::allocator<ch
ar> &)': cannot convert argument 1 from 'Upp::String' to 'const std::basic_string<char,std::char_traits<char>,std::allocator <char>> &'
A previous topic similar to this error was only when compiling with MINGW
This error is when recompiling an older app with upp 7901 and even with MSC15
Has the changes that causes this with C++11? or was this changes in the upp code?
Do I need to change all the 'string' to upp::String or is there an easier way ??
There are several apps that I may run into with this error as they are updated from a few years back.
here are a few lines of code:
line 647 string Min (Tm, 2,2);
string Sec (Tm, 4,2);
String Tmz = Hr + ":" + Min + ":" + Sec;
count<<=Tmz;
Neil
[Updated on: Fri, 29 April 2016 09:01] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Wed Apr 30 20:24:35 CEST 2025
Total time taken to generate the page: 0.01327 seconds
|