I have code like this
template<int size> big_int {
/* ... */
template<int size2> friend class big_int<size2>;
};
What I wanted to achive is to be able to easly convert different sized
big_int's and to operate on them. But for this I need to be able to access
private data of big_int. The problem is that for differenc sizes this are of
course different classes so I need friend declaration. But my compiler (MS
VS .NET 2005) does not accept this.
Is it possible? If no, how can I achive this except for declaring
private data public?
Thanks in advance.
Adam Badura