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 » U++ Library support » U++ Core » Gate() or flow control problem
Re: Gate() or flow control problem [message #10463 is a reply to message #10460] Tue, 10 July 2007 22:25 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14266
Registered: November 2005
Ultimate Member
I am not quite sure what you want to achieve, however

if(Gate(Validate()))


This constructs a Gate object with default value obtained by calling Validate(), then it evaluates Gate by operator bool (which results in the value returned by Validate) and then destructs the Gate instance.

In other words, quite nonsense Smile
 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon7.gif
Read Message
Previous Topic: asm int 3, abort();
Next Topic: Problem using Split on carriage return
Goto Forum:
  


Current Time: Fri Jul 18 06:30:19 CEST 2025

Total time taken to generate the page: 0.03941 seconds