|
From: DU V. DE V. F. G. P. <fra...@ca...> - 2007-06-07 16:31:35
|
>It is, but (I think) only on the type of an argument. What did you have
>in mind?
Here is an example of the code I tried to write: =20
class X {};
class Y: public X {};
class A {
public:
template <class T>
A():p_(){
p_ =3D shared_ptr(new T);
}
private:
shared_ptr<X> p_;
};
void main() {
shared_ptr<A> a (new A<X>());
}
Fran=E7ois
----------------------------------------=20
Can't act. Slightly bald. Also dances.=20
-- RKO executive, reacting to Fred Astaire's screen test.=20
Cerf/Navasky, "The Experts Speak"=20
-------------------------------------------------------------------------=
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-dev mailing list
Qua...@li...
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
|