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   |
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
[Updated on: Wed, 07 March 2007 17:06] Report message to a moderator
|
|
|
 |
|
Derivating from Vector<>
By: victorb on Sat, 03 March 2007 20:12
|
 |
|
Re: Deriving from Vector<>
By: victorb on Sat, 03 March 2007 20:37
|
 |
|
Re: Deriving from Vector<>
By: victorb on Sat, 03 March 2007 20:48
|
 |
|
Re: Deriving from Vector<>
By: victorb on Sat, 03 March 2007 22:17
|
 |
|
Re: Deriving from Vector<>
By: victorb on Wed, 07 March 2007 00:54
|
 |
|
Re: Deriving from Vector<>
By: victorb on Wed, 07 March 2007 01:14
|
 |
|
Re: Derivating from Vector<>
By: victorb on Wed, 07 March 2007 01:30
|
 |
|
Re: Derivating from Vector<>
By: victorb on Wed, 07 March 2007 17:05
|
 |
|
Re: Derivating from Vector<>
By: mirek on Thu, 08 March 2007 13:55
|
 |
|
Re: Derivating from Vector<>
By: victorb on Thu, 08 March 2007 16:30
|
Goto Forum:
Current Time: Thu Jul 31 22:12:52 CEST 2025
Total time taken to generate the page: 0.12097 seconds
|