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 » Derivating from Vector<>
Re: Deriving from Vector<> [message #8399 is a reply to message #8346] Wed, 07 March 2007 00:54 Go to previous messageGo to previous message
victorb is currently offline  victorb
Messages: 78
Registered: December 2005
Location: Nice, France
Member
I think that the solution is:

class IntVector : public Vector<int>
{
public:
	IntVector(){Cout() << "IntVector\n"; }
	
	virtual ~IntVector(){Cout() <<  "~IntVector\n";}
	
	IntVector(const IntVector &src, int) : Vector<int>(src, 0)
        {
		name = src.name;
	}

	String name;
	
};
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: something abaut brc file
Next Topic: XML Error
Goto Forum:
  


Current Time: Thu Jul 31 22:17:48 CEST 2025

Total time taken to generate the page: 0.07348 seconds