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
Re: errors re strings [message #46365 is a reply to message #46364] Fri, 29 April 2016 10:44 Go to previous messageGo to previous message
mr_ped is currently offline  mr_ped
Messages: 826
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
std::string and Upp::String are two completely different classes.

So the question is, why do you even use std::string in U++ application (or the other way around, why don't you stick solely to std::string, if you want to keep usage of U++ low and having that part of source usable without U++ Core too).

If your app is strongly U++ dependent, I would go for Upp::String only (except places where you call some external library, which has input as std::string, at that single point I would convert the String to string, but otherwise I would keep internally everything in String).

I often write clean C++ libraries in TheIDE (to be compiled on phone platforms, so I don't use Upp at all), then I use std::string only.

Your mixed way is certainly possible too, but I think it's not giving you any advantage, just confusing.
 
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: Wed Apr 30 16:20:38 CEST 2025

Total time taken to generate the page: 0.00497 seconds