Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

BOOST_COMP compiler macros

BOOST_COMP_BORLAND

Borland C++ compiler. Version number available as major, minor, and patch.

Symbol

Version

__BORLANDC__

detection

__CODEGEARC__

detection

__BORLANDC__

V.R.P

__CODEGEARC__

V.R.P

BOOST_COMP_CLANG

Clang compiler. Version number available as major, minor, and patch.

Symbol

Version

__clang__

detection

__clang_major__, __clang_minor__, __clang_patchlevel__

V.R.P

BOOST_COMP_COMO

Comeau C++ compiler. Version number available as major, minor, and patch.

Symbol

Version

__COMO__

detection

__COMO_VERSION__

V.R.P

BOOST_COMP_DEC

Compaq C/C++ compiler. Version number available as major, minor, and patch.

Symbol

Version

__DECCXX

detection

__DECC

detection

__DECCXX_VER

V.R.P

__DECC_VER

V.R.P

BOOST_COMP_DIAB

Diab C/C++ compiler. Version number available as major, minor, and patch.

Symbol

Version

__DCC__

detection

__VERSION_NUMBER__

V.R.P

BOOST_COMP_DMC

Digital Mars compiler. Version number available as major, minor, and patch.

Symbol

Version

__DMC__

detection

__DMC__

V.R.P

BOOST_COMP_SYSC

Dignus Systems/C++ compiler. Version number available as major, minor, and patch.

Symbol

Version

__SYSC__

detection

__SYSC_VER__

V.R.P

BOOST_COMP_EDG

EDG C++ Frontend compiler. Version number available as major, minor, and patch.

Symbol

Version

__EDG__

detection

__EDG_VERSION__

V.R.0

BOOST_COMP_PATH

EKOpath compiler. Version number available as major, minor, and patch.

Symbol

Version

__PATHCC__

detection

__PATHCC__, __PATHCC_MINOR__, __PATHCC_PATCHLEVEL__

V.R.P

BOOST_COMP_GNUC

Gnu GCC C/C++ compiler. Version number available as major, minor, and patch (if available).

Symbol

Version

__GNUC__

detection

__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__

V.R.P

__GNUC__, __GNUC_MINOR__

V.R.0

BOOST_COMP_GCCXML

GCC XML compiler.

Symbol

Version

__GCCXML__

detection

BOOST_COMP_GHS

Green Hills C/C++ compiler. Version number available as major, minor, and patch.

Symbol

Version

__ghs

detection

__ghs__

detection

__GHS_VERSION_NUMBER__

V.R.P

__ghs

V.R.P

BOOST_COMP_HPACC

HP aC++ compiler. Version number available as major, minor, and patch.

Symbol

Version

__HP_aCC

detection

__HP_aCC

V.R.P

BOOST_COMP_IAR

IAR C/C++ compiler. Version number available as major, minor, and patch.

Symbol

Version

__IAR_SYSTEMS_ICC__

detection

__VER__

V.R.P

BOOST_COMP_IBM

IBM XL C/C++ compiler. Version number available as major, minor, and patch.

Symbol

Version

__IBMCPP__

detection

__xlC__

detection

__xlc__

detection

__COMPILER_VER__

V.R.P

__xlC__

V.R.P

__xlc__

V.R.P

__IBMCPP__

V.R.P

BOOST_COMP_INTEL

Intel C/C++ compiler. Version number available as major, minor, and patch.

Symbol

Version

__INTEL_COMPILER

detection

__ICL

detection

__ICC

detection

__ECC

detection

__INTEL_COMPILER

V.R.P

BOOST_COMP_KCC

Kai C++ compiler. Version number available as major, minor, and patch.

Symbol

Version

__KCC

detection

__KCC_VERSION

V.R.P

BOOST_COMP_LLVM

LLVM compiler.

Symbol

Version

__llvm__

detection

BOOST_COMP_HIGHC

MetaWare High C/C++ compiler.

Symbol

Version

__HIGHC__

detection

BOOST_COMP_MWERKS

Metrowerks CodeWarrior compiler. Version number available as major, minor, and patch.

Symbol

Version

__MWERKS__

detection

__CWCC__

detection

__CWCC__

V.R.P

__MWERKS__

V.R.P >= 4.2.0

__MWERKS__

9.R.0

__MWERKS__

8.R.0

BOOST_COMP_MRI

Microtec C/C++ compiler.

Symbol

Version

_MRI

detection

BOOST_COMP_MPW

MPW C++ compiler. Version number available as major, and minor.

Symbol

Version

__MRC__

detection

MPW_C

detection

MPW_CPLUS

detection

__MRC__

V.R.0

BOOST_COMP_PALM

Palm C/C++ compiler. Version number available as major, minor, and patch.

Symbol

Version

_PACC_VER

detection

_PACC_VER

V.R.P

BOOST_COMP_PGI

Portland Group C/C++ compiler.

Symbol

Version

__PGI

detection

__PGIC__, __PGIC_MINOR__, __PGIC_PATCHLEVEL__

V.R.P

BOOST_COMP_SGI

SGI MIPSpro compiler. Version number available as major, minor, and patch.

Symbol

Version

__sgi

detection

sgi

detection

_SGI_COMPILER_VERSION

V.R.P

_COMPILER_VERSION

V.R.P

BOOST_COMP_SUNPRO

Oracle Solaris Studio compiler. Version number available as major, minor, and patch.

Symbol

Version

__SUNPRO_CC

detection

__SUNPRO_C

detection

__SUNPRO_CC

V.R.P

__SUNPRO_C

V.R.P

__SUNPRO_CC

VV.RR.P

__SUNPRO_C

VV.RR.P

BOOST_COMP_TENDRA

TenDRA C/C++ compiler.

Symbol

Version

__TenDRA__

detection

BOOST_COMP_MSVC

Microsoft Visual C/C++ compiler. Version number available as major, minor, and patch.

Symbol

Version

_MSC_VER

detection

_MSC_FULL_VER

V.R.P

_MSC_VER

V.R.0

BOOST_COMP_WATCOM

Watcom C++ compiler. Version number available as major, and minor.

Symbol

Version

__WATCOMC__

detection

__WATCOMC__

V.R.P


PrevUpHomeNext