Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » errors re strings
errors re strings [message #46364] Fri, 29 April 2016 08:46 Go to previous message
nlneilson is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: gui , how to switch between the visual dlg.lay to the text view
Next Topic: Network remote control
Goto Forum:
  


Current Time: Sat Apr 27 18:24:36 CEST 2024

Total time taken to generate the page: 0.04601 seconds