3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>BOOST_LANG language standards macros</title>
5 <link rel="stylesheet" href="../../boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7 <link rel="home" href="../../index.html" title="Predef 1.1">
8 <link rel="up" href="../reference.html" title="Reference">
9 <link rel="prev" href="boost_comp_compiler_macros.html" title="BOOST_COMP compiler macros">
10 <link rel="next" href="boost_lib_library_macros.html" title="BOOST_LIB library macros">
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <div class="spirit-nav">
14 <a accesskey="p" href="boost_comp_compiler_macros.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="boost_lib_library_macros.html"><img src="../../images/next.png" alt="Next"></a>
17 <div class="titlepage"><div><div><h3 class="title">
18 <a name="predef.reference.boost_lang_language_standards_ma"></a><a class="link" href="boost_lang_language_standards_ma.html" title="BOOST_LANG language standards macros"><code class="computeroutput"><span class="identifier">BOOST_LANG</span></code> language standards macros</a>
19 </h3></div></div></div>
21 <a name="predef.reference.boost_lang_language_standards_ma.h0"></a>
22 <span class="phrase"><a name="predef.reference.boost_lang_language_standards_ma.boost_lang_objc"></a></span><a class="link" href="boost_lang_language_standards_ma.html#predef.reference.boost_lang_language_standards_ma.boost_lang_objc"><code class="computeroutput"><span class="identifier">BOOST_LANG_OBJC</span></code></a>
25 <a href="http://en.wikipedia.org/wiki/Objective-C" target="_top">Objective-C</a>
28 <div class="informaltable"><table class="table">
48 <code class="computeroutput"><span class="identifier">__OBJC__</span></code>
53 <span class="bold"><strong>detection</strong></span>
59 <a name="predef.reference.boost_lang_language_standards_ma.h1"></a>
60 <span class="phrase"><a name="predef.reference.boost_lang_language_standards_ma.boost_lang_stdc"></a></span><a class="link" href="boost_lang_language_standards_ma.html#predef.reference.boost_lang_language_standards_ma.boost_lang_stdc"><code class="computeroutput"><span class="identifier">BOOST_LANG_STDC</span></code></a>
63 <a href="http://en.wikipedia.org/wiki/C_(programming_language)" target="_top">Standard
64 C</a> language. If available, the year of the standard is detected as
65 YYYY.MM.1 from the Epoc date.
67 <div class="informaltable"><table class="table">
88 <code class="computeroutput"><span class="identifier">__STDC__</span></code>
93 <span class="bold"><strong>detection</strong></span>
100 <code class="computeroutput"><span class="identifier">__STDC_VERSION__</span></code>
112 <a name="predef.reference.boost_lang_language_standards_ma.h2"></a>
113 <span class="phrase"><a name="predef.reference.boost_lang_language_standards_ma.boost_lang_stdcpp"></a></span><a class="link" href="boost_lang_language_standards_ma.html#predef.reference.boost_lang_language_standards_ma.boost_lang_stdcpp"><code class="computeroutput"><span class="identifier">BOOST_LANG_STDCPP</span></code></a>
116 <a href="http://en.wikipedia.org/wiki/C%2B%2B" target="_top">Standard C++</a> language.
117 If available, the year of the standard is detected as YYYY.MM.1 from the
118 Epoc date. Because of the way the C++ standardization process works the defined
119 version year will not be the commonly known year of the standard. Specifically
120 the defined versions are:
123 <a name="predef.reference.boost_lang_language_standards_ma.detected_version_number_vs_c_sta"></a><p class="title"><b>Table 1. Detected Version Number vs. C++ Standard Year</b></p>
124 <div class="table-contents"><table class="table" summary="Detected Version Number vs. C++ Standard Year">
133 Detected Version Number
185 <br class="table-break"><div class="informaltable"><table class="table">
206 <code class="computeroutput"><span class="identifier">__cplusplus</span></code>
211 <span class="bold"><strong>detection</strong></span>
218 <code class="computeroutput"><span class="identifier">__cplusplus</span></code>
230 <a name="predef.reference.boost_lang_language_standards_ma.h3"></a>
231 <span class="phrase"><a name="predef.reference.boost_lang_language_standards_ma.boost_lang_stdcppcli"></a></span><a class="link" href="boost_lang_language_standards_ma.html#predef.reference.boost_lang_language_standards_ma.boost_lang_stdcppcli"><code class="computeroutput"><span class="identifier">BOOST_LANG_STDCPPCLI</span></code></a>
234 <a href="http://en.wikipedia.org/wiki/C%2B%2B/CLI" target="_top">Standard C++/CLI</a>
235 language. If available, the year of the standard is detected as YYYY.MM.1
238 <div class="informaltable"><table class="table">
259 <code class="computeroutput"><span class="identifier">__cplusplus_cli</span></code>
264 <span class="bold"><strong>detection</strong></span>
271 <code class="computeroutput"><span class="identifier">__cplusplus_cli</span></code>
283 <a name="predef.reference.boost_lang_language_standards_ma.h4"></a>
284 <span class="phrase"><a name="predef.reference.boost_lang_language_standards_ma.boost_lang_stdecpp"></a></span><a class="link" href="boost_lang_language_standards_ma.html#predef.reference.boost_lang_language_standards_ma.boost_lang_stdecpp"><code class="computeroutput"><span class="identifier">BOOST_LANG_STDECPP</span></code></a>
287 <a href="http://en.wikipedia.org/wiki/Embedded_C%2B%2B" target="_top">Standard Embedded
290 <div class="informaltable"><table class="table">
310 <code class="computeroutput"><span class="identifier">__embedded_cplusplus</span></code>
315 <span class="bold"><strong>detection</strong></span>
321 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
322 <td align="left"></td>
323 <td align="right"><div class="copyright-footer">Copyright © 2005, 2008-2014 Rene Rivera<p>
324 Distributed under the Boost Software License, Version 1.0. (See accompanying
325 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
330 <div class="spirit-nav">
331 <a accesskey="p" href="boost_comp_compiler_macros.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="boost_lib_library_macros.html"><img src="../../images/next.png" alt="Next"></a>