$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r73579 - trunk/boost/typeof
From: peder.holt_at_[hidden]
Date: 2011-08-06 14:46:44
Author: burbelgruff
Date: 2011-08-06 14:46:43 EDT (Sat, 06 Aug 2011)
New Revision: 73579
URL: http://svn.boost.org/trac/boost/changeset/73579
Log:
Applied patch for #5745: Use native typeof support for Oracle Solaris Studio C++ compiler
Text files modified: 
   trunk/boost/typeof/typeof.hpp |    17 ++++++++++++++++-                       
   1 files changed, 16 insertions(+), 1 deletions(-)
Modified: trunk/boost/typeof/typeof.hpp
==============================================================================
--- trunk/boost/typeof/typeof.hpp	(original)
+++ trunk/boost/typeof/typeof.hpp	2011-08-06 14:46:43 EDT (Sat, 06 Aug 2011)
@@ -155,7 +155,22 @@
 #   else
 #       error native typeof is not supported
 #   endif
-
+#elif defined(__SUNPRO_CC)
+#   if (__SUNPRO_CC < 0x590 )
+#     ifdef BOOST_TYPEOF_NATIVE
+#         error native typeof is not supported
+#     endif
+#     ifndef BOOST_TYPEOF_EMULATION
+#         define BOOST_TYPEOF_EMULATION
+#     endif
+#   else
+#     ifndef BOOST_TYPEOF_EMULATION
+#         ifndef BOOST_TYPEOF_NATIVE
+#             define BOOST_TYPEOF_NATIVE
+#         endif
+#         define BOOST_TYPEOF_KEYWORD __typeof__
+#     endif
+#   endif
 #else //unknown compiler
 #   ifndef BOOST_TYPEOF_NATIVE
 #       ifndef BOOST_TYPEOF_EMULATION