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 » FileIn and Buffer cannot be composed in a class?
Re: FileIn and Buffer cannot be composed in a class? [message #56558 is a reply to message #56555] Thu, 25 March 2021 10:08 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1221
Registered: August 2007
Senior Contributor
Hello jjacksonRIAB,

You can use One<FileIn> for FileIn (or for anything), if you need to move it.

e.g.

struct Foo {
	One<FileIn> fin;
	Foo() { fin.Create(); }
};

CONSOLE_APP_MAIN
{
	StdLogSetup(LOG_COUT);
	Foo foo;
	Foo f = pick(foo);
	RDUMP(f.fin.IsEmpty());
	
}



Should return "false". Smile

Best regards,
Obilvion


[Updated on: Thu, 25 March 2021 10:14]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Pass data of Vector<Vector<double>> into a function call
Next Topic: How to make this looking EditString UI
Goto Forum:
  


Current Time: Wed Aug 06 10:16:04 CEST 2025

Total time taken to generate the page: 0.03868 seconds