Warning and error fixes for Solaris Sun Studio compiler

This commit is contained in:
William S Fulton 2015-01-27 19:14:32 +00:00
commit 760d603918
9 changed files with 42 additions and 19 deletions

View file

@ -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>()); }
};
}