|
-
February 23rd, 2007, 03:10 PM
#2
Re: VC-Compiler (2005) not ANSI-conform (using templates)?
Hi gurus,
I found the (simple) solution:
One has to foreward declare the operator-Funktion, before it can be used as a friend in the class declarations. The foreward declaration looks like:
template<class T> Vektor<T> operator*(const Matr<T>&, const Vektor<T>&);
Then it works!
Bye,
Physicus.
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
|