Solaris/CC refused to compile part of this file, giving up for now. a=scc

This commit is contained in:
mcafee%netscape.com 1999-02-26 08:41:15 +00:00
Родитель e10f049385
Коммит 911c21a981
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -400,11 +400,14 @@ main()
// [Shouldn't compile] Is it a compile time error to try to |Release| be hand?
//foop->Release();
/* Solaris Workshop compiler fails to compile this. */
#if !(defined(SOLARIS) && !defined(__GNUG__))
cout << endl << "### Test 3: can you |AddRef| if you must?" << endl;
STATIC_CAST(IFoo*, foop)->AddRef();
cout << endl << "### Test 4: can you |Release| if you must?" << endl;
STATIC_CAST(IFoo*, foop)->Release();
#endif
cout << endl << "### Test 5: will a |nsCOMPtr| |Release| when it goes out of scope?" << endl;
}