~ubuntu-branches/ubuntu/warty/aqsis/warty

« back to all changes in this revision

Viewing changes to boost/boost/config/compiler/sunpro_cc.hpp

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2004-08-24 07:25:04 UTC
  • Revision ID: james.westby@ubuntu.com-20040824072504-zf993vnevvisdsvb
Tags: upstream-0.9.1
ImportĀ upstreamĀ versionĀ 0.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//  (C) Copyright Boost.org 2001. Permission to copy, use, modify, sell and
 
2
//  distribute this software is granted provided this copyright notice appears
 
3
//  in all copies. This software is provided "as is" without express or implied
 
4
//  warranty, and with no claim as to its suitability for any purpose.
 
5
 
 
6
//  See http://www.boost.org for most recent version.
 
7
 
 
8
//  Sun C++ compiler setup:
 
9
 
 
10
#    if __SUNPRO_CC <= 0x500
 
11
#      define BOOST_NO_MEMBER_TEMPLATES
 
12
#      define BOOST_NO_FUNCTION_TEMPLATE_ORDERING
 
13
#    endif
 
14
 
 
15
#    if (__SUNPRO_CC <= 0x520)
 
16
       //
 
17
       // Sunpro 5.2 and earler:
 
18
       //
 
19
       // although sunpro 5.2 supports the syntax for
 
20
       // inline initialization it often gets the value
 
21
       // wrong, especially where the value is computed
 
22
       // from other constants (J Maddock 6th May 2001)
 
23
#      define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
 
24
 
 
25
       // Although sunpro 5.2 supports the syntax for
 
26
       // partial specialization, it often seems to
 
27
       // bind to the wrong specialization.  Better
 
28
       // to disable it until suppport becomes more stable
 
29
       // (J Maddock 6th May 2001).
 
30
#      define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
 
31
#    endif
 
32
 
 
33
#    if (__SUNPRO_CC <= 0x530) || !defined(BOOST_STRICT_CONFIG)
 
34
       // SunPro 5.3 has better support for partial specialization,
 
35
       // but breaks when compiling std::less<shared_ptr<T> >
 
36
       // (Jens Maurer 4 Nov 2001).
 
37
 
 
38
       // std::less specialization fixed as reported by George
 
39
       // Heintzelman; partial specialization re-enabled
 
40
       // (Peter Dimov 17 Jan 2002)
 
41
 
 
42
//#      define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
 
43
 
 
44
       // integral constant expressions with 64 bit numbers fail
 
45
#      define BOOST_NO_INTEGRAL_INT64_T
 
46
#    endif
 
47
 
 
48
#    if (__SUNPRO_CC <= 0x540) || !defined(BOOST_STRICT_CONFIG)
 
49
#      define BOOST_NO_TEMPLATE_TEMPLATES
 
50
#    endif
 
51
 
 
52
#define BOOST_COMPILER "Sun compiler version " BOOST_STRINGIZE(__SUNPRO_CC)
 
53
 
 
54
//
 
55
// versions check:
 
56
// we don't support sunpro prior to version 4:
 
57
#if __SUNPRO_CC < 0x400
 
58
#error "Compiler not supported or configured - please reconfigure"
 
59
#endif
 
60
//
 
61
// last known and checked version is 0x530:
 
62
#if (__SUNPRO_CC > 0x530)
 
63
#  if defined(BOOST_ASSERT_CONFIG)
 
64
#     error "Unknown compiler version - please run the configure tests and report the results"
 
65
#  endif
 
66
#endif
 
67
 
 
68
 
 
69
 
 
70
 
 
71