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: Derivating from Vector<> [message #8406 is a reply to message #8402] Wed, 07 March 2007 17:05 Go to previous messageGo to previous message
victorb is currently offline  victorb
Messages: 78
Registered: December 2005
Location: Nice, France
Member
Simpler, without having to use multiple inheritance:

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

};


Should be the ultimate solution Smile

[Updated on: Wed, 07 March 2007 17:06]

Report message to a moderator

 
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 04:11:39 CEST 2025

Total time taken to generate the page: 0.05266 seconds