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 » From std::string to String
Re: From std::string to String [message #49468 is a reply to message #49458] Thu, 15 February 2018 15:35 Go to previous messageGo to previous message
Giorgio is currently offline  Giorgio
Messages: 218
Registered: August 2015
Experienced Member
I am in the process to use Core functionalities to rewrite my application, I have a couple of questions.

I use LoadFile() and noticed that is has no .close() method or something like that (it replaces a ifstream in c++ standard library and with it I have to open and close the file): my understanding is that I have not to open/close the stream as with ifstream; is my understanding correct?

There are a couple of functions that receive and return Upp::Vector<Upp::String> used as follows:

(MyApp.h)
Upp::Vector<Upp::String> SanitizeData(Upp::Vector<Upp::String> fields);

(MyApp.cpp)
Upp::Vector<Upp::String> fields;

(Here the Vector is filled in using data read from a file)
...

Upp::Vector<Upp::String> sanitized = SanitizeData(fields);



Previously, I used std::vector<std::string> and the application compiled, but now I get "error C2280: attempting to reference a deleted function".

Thanks,
Gio
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Filtering CR from an EditString
Next Topic: MSSQL and codepage
Goto Forum:
  


Current Time: Tue May 07 10:54:05 CEST 2024

Total time taken to generate the page: 0.02631 seconds