-
CArray
I have had a problem since 1 day and I dont see how to do.It would be great if you could help me.
I'm working in ClassDoc and I use CArray<int,int&> SymbolArray because I need an array with integers in.
I want to discuss with another Class CEntropie,and more precisely,with a function: ComputeEntropy(CArray<int,int&> TabSymbol)
So,I used an object of this class: CEntropie Entropie;
and I wanted to do: Entropy.Compute(TabSymbol);
but it puts me an error:
ComputeEntropy:Cannot convert parameter 1 from 'class CArray<int,int&>' to 'class CArray<int,int&>'
thank you for your help
Thierry
-
Re: CArray
Hi Thierry
why don't you change the declaration from
ComputeEntropy(CArray<int,int&> TabSymbol)
to
ComputeEntropy(CArray<int,int&> & TabSymbol)
so there is no need for any Copy to be performed
Hope This Helps