Warning and error fixes for Solaris Sun Studio compiler
This commit is contained in:
parent
2e8dfbcc3e
commit
760d603918
9 changed files with 42 additions and 19 deletions
|
|
@ -20,9 +20,13 @@
|
|||
Bar(){ }
|
||||
Bar(int){ }
|
||||
|
||||
#if !defined(__SUNPRO_CC)
|
||||
operator int() { return 0; }
|
||||
#endif
|
||||
operator int&() { static int num = 0; return num; }
|
||||
#if !defined(__SUNPRO_CC)
|
||||
operator Foo<T>() { return Foo<T>(); }
|
||||
#endif
|
||||
operator Foo<T>&() { return *(new Foo<T>()); }
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue