dynamic template class
Hi All, first of all, thanks for all you do, you guys do great work!
I'm trying to make a template class and make it dynamic... I'll explain it better w/ the code: Code:
template <class Data> Code:
int main() Code:
node *hp = new node<int>; Here's a class example where I would want this to work: Code:
class llist |
I can think of two ways.
Edit: boost::any: Actually, their example looks quite similar to yours. |
All times are GMT -5. The time now is 11:41 AM. |