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 » Make TimeStop "Moveable"?
Make TimeStop "Moveable"? [message #10345] Tue, 03 July 2007 12:39 Go to next message
Zardos is currently offline  Zardos
Messages: 62
Registered: April 2007
Member
Hello,

I need to store "TimeStops" in a Vector.

I changed the u++ source in Util.h from:
class TimeStop {
	dword starttime;

public:
	int    Elapsed() const           { return GetTickCount() - starttime; }
	String ToString() const;

	TimeStop();
};

to:
class TimeStop : public Moveable<TimeStop> {
	dword starttime;

public:
	int    Elapsed() const           { return GetTickCount() - starttime; }
	String ToString() const;

	TimeStop();
};

Could you introduce this change in the repository?

- Ralf
Re: Make TimeStop "Moveable"? [message #10346 is a reply to message #10345] Tue, 03 July 2007 12:50 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Yes, done.

Mirek
Previous Topic: Why is Vector<double> vdS empty after a call?
Next Topic: XmlNode Copy Constructor
Goto Forum:
  


Current Time: Sat Apr 20 01:49:13 CEST 2024

Total time taken to generate the page: 0.05632 seconds