Re: auto_ptr array



Thanks Igor,


Still compile error, how to fix it? I posted my code and compile error below,

[Code]
#include <memory>

using namespace std;

int main()
{
auto_ptr<int> pi[10];
int* p;

for (int i = 0; i < 10; i++)
{
p = new int (i);
pi[i] (p); // error C2064: term does not evaluate to a function taking 1
arguments
}

return 0;
}
[/Code]


regards,
George
.



Relevant Pages

  • Re: why does adding 2 bytes together result in an int?
    ... This is because the devleopers of the platform have decided that the return ... compile error: Cannot implicitly convert type 'int' to 'byte'. ... I need to convert ttl into an int? ...
    (microsoft.public.dotnet.languages.csharp)
  • [-mm patch] fs/cifs/cifsproto.h: remove #ifdef around small_smb_init_no_tc() prototype
    ... Let's hope gcc guesses the prototye of the function right. ... this patch has turned a compile error into a nasty runtime ... extern int CIFS_SessSetup(unsigned int xid, struct cifsSesInfo *ses, ...
    (Linux-Kernel)
  • Re: why does adding 2 bytes together result in an int?
    ... byte val2 = 23; ... compile error: Cannot implicitly convert type 'int' to 'byte'. ... I need to convert ttl into an int? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: variable trouble!
    ... Because out parameters are NOT required to be initialized prior to being ... passed (the only difference between out and ref parameters is that ref ... public static int Main ... I get this compile error mention above.... ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: [C++] std::ostream::rdbuf()
    ... This is the compile error: ... int get_importanceconst ... class MyOstream { ... -- martin dot henne at web dot de ...
    (alt.comp.lang.learn.c-cpp)