Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74849 - branches/release/boost/typeof
From: peder.holt_at_[hidden]
Date: 2011-10-09 09:08:06


Author: burbelgruff
Date: 2011-10-09 09:08:04 EDT (Sun, 09 Oct 2011)
New Revision: 74849
URL: http://svn.boost.org/trac/boost/changeset/74849

Log:
Integrated from trunc: Applied patch for #5745: Use native typeof support for Oracle Solaris Studio C++ compiler
Properties modified:
   branches/release/boost/typeof/typeof.hpp (contents, props changed)
Text files modified:
   branches/release/boost/typeof/typeof.hpp | 17 ++++++++++++++++-
   1 files changed, 16 insertions(+), 1 deletions(-)

Modified: branches/release/boost/typeof/typeof.hpp
==============================================================================
--- branches/release/boost/typeof/typeof.hpp (original)
+++ branches/release/boost/typeof/typeof.hpp 2011-10-09 09:08:04 EDT (Sun, 09 Oct 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


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk