|
-
Apr 5th, 2007, 06:16 PM
#9
Thread Starter
transcendental analytic
Re: partial template specialization problem
I don´t have access to my machine at the moment but I don´t think the version is particularly old. It came with the latest ubuntu distribution i downloaded a couple of months ago. You are not really doing what I was trying to do though. I had no problem with unnested explicit specializations and nested partial specializations of classes, but the problem is extremely annoying with nested specializations, that is of template member functions (perhaps they may work in non template classes, but as such they would be useless to me)
Try doing a template <class X> int foo() and a template <> foo<int>()
also try template <class X,class Y> int foo2() and template <class X> int foo2<int>()
Thanks for trying to be helpful though.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|