diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-12-12 03:57:11 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-12-12 03:57:11 +0000 |
commit | 266132be9aeb20b198ae61b682e47ac0fa058419 (patch) | |
tree | f352d480cd715cd700011acd0b587304a937c94a /tests/DLL_Test.cpp | |
parent | 70637d995a5054e93993894768fec049eb3befc7 (diff) | |
download | ATCD-266132be9aeb20b198ae61b682e47ac0fa058419.tar.gz |
Can assign a <T*> to an auto_ptr<T>. Use constructor auto_ptr (T*) instead.
Diffstat (limited to 'tests/DLL_Test.cpp')
-rw-r--r-- | tests/DLL_Test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/DLL_Test.cpp b/tests/DLL_Test.cpp index d7308e9ba06..d47ebc90915 100644 --- a/tests/DLL_Test.cpp +++ b/tests/DLL_Test.cpp @@ -113,7 +113,7 @@ main (int argc, char *argv[]) ace_dll_obj.error()), -1); - auto_ptr <Hello> my_hello = f (); + auto_ptr <Hello> my_hello (f ()); // Make the method calls, as the object pointer is available. my_hello->say_hello (); |