diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-04-02 22:02:14 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-04-02 22:02:14 +0000 |
commit | 1aaaae6121e837eb0a7a96e9342712d1db1edb00 (patch) | |
tree | d9cc0eb9f581b096270b01f3a3cd5257730dba45 /ace/config-sunos5.5-sunc++-4.1.h | |
parent | 30699efbdbb525599bccc2411f1ff2e93ec48b99 (diff) | |
download | ATCD-1aaaae6121e837eb0a7a96e9342712d1db1edb00.tar.gz |
added template specialization with Sun C++ 4.2
Diffstat (limited to 'ace/config-sunos5.5-sunc++-4.1.h')
-rw-r--r-- | ace/config-sunos5.5-sunc++-4.1.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/ace/config-sunos5.5-sunc++-4.1.h b/ace/config-sunos5.5-sunc++-4.1.h index 7450a5473e4..33196c400e0 100644 --- a/ace/config-sunos5.5-sunc++-4.1.h +++ b/ace/config-sunos5.5-sunc++-4.1.h @@ -2,7 +2,7 @@ // $Id$ // The following configuration file is designed to work for SunOS 5.5 -// platforms using the SunC++ 4.1 compiler. +// platforms using the SunC++ 4.1 compiler. It also works with version 4.2. #if !defined (ACE_CONFIG_H) #define ACE_CONFIG_H @@ -14,20 +14,26 @@ #define __ACE_INLINE__ #endif /* ! __ACE_INLINE__ */ -// ACE_HAS_EXCEPTIONS requires -noex, but that causes problems with -// Sun C++ 4.1 on multiprocessor UltraSparcs: threaded executables -// core dump when threads exit. This problem does not seem to appear -// on single-processor UltraSparcs. -// So until -noex gets fixed on MP machines, we can't use this with -// Sun C++ 4.1 . . . +// ACE_HAS_EXCEPTIONS precludes -noex, but without -noex causes problems +// with Sun C++ 4.1/4.2 on multiprocessor UltraSparcs: threaded +// executables core dump when threads exit. This problem does not seem +// to appear on single-processor UltraSparcs. So until exception handling +// gets fixed on MP machines, we can't use this with Sun C++ 4.1/4.2 . . . // #define ACE_HAS_EXCEPTIONS #define ACE_HAS_UNICODE // Note that SunC++ 4.1 fixes template bugs that prevented earlier // versions from supporting template typedefs correctly. +// But template typedefs don't work with SunC++ 4.1 or 4.2. // #define ACE_HAS_TEMPLATE_TYPEDEFS +#if defined (__SUNPRO_CC) && (__SUNPRO_CC >= 0x420) + // Sun C++ 4.2 (and beyond) supports template specialization. + #define ACE_TEMPLATES_REQUIRE_SPECIALIZATION + #define ACE_TEMPLATES_REQUIRE_SOURCE +#endif + // Platform supports System V IPC (most versions of UNIX, but not Win32) #define ACE_HAS_SYSV_IPC |