Tilføjelse: i ovenstående er 'obj->FindComponents()' = 'MyClass->MyMethod()' i eks. fra før, bortset fra SmartPtr (som er grundigt gennemtestet og brugt før).
C:\>bcc32 temp.cpp Borland C++ 5.5 for Win32 Copyright (c) 1993, 2000 Borland temp.cpp: Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
C:\>temp 65 A
C:\>cl /GX temp.cpp Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86 Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
temp.cpp temp.cpp(17) : error C2679: binary '<<' : no operator defined which takes a righ t-hand operand of type '' (or there is no acceptable conversion) temp.cpp(17) : error C2062: type 'int' unexpected temp.cpp(18) : error C2679: binary '<<' : no operator defined which takes a righ t-hand operand of type '' (or there is no acceptable conversion) temp.cpp(18) : error C2062: type 'char' unexpected
temp.cpp(17) : error C2679: binary '<<' : no operator defined which takes a righ t-hand operand of type '' (or there is no acceptable conversion) temp.cpp(17) : error C2062: type 'int' unexpected temp.cpp(18) : error C2679: binary '<<' : no operator defined which takes a righ t-hand operand of type '' (or there is no acceptable conversion) temp.cpp(18) : error C2062: type 'char' unexpected
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.