Fix not handling stdcxx recent versions that go above 10.x.

Fixes #112
This commit is contained in:
Rene Rivera
2021-01-03 22:52:27 -06:00
parent 99cfb298de
commit e697cafd12
3 changed files with 14 additions and 3 deletions

View File

@ -6568,6 +6568,9 @@ indicates an ignored digit.</p>
<p><code>BOOST_PREDEF_MAKE_10_VPPP(V)</code></p> <p><code>BOOST_PREDEF_MAKE_10_VPPP(V)</code></p>
</li> </li>
<li> <li>
<p><code>BOOST_PREDEF_MAKE_10_VVPPP(V)</code></p>
</li>
<li>
<p><code>BOOST_PREDEF_MAKE_10_VR0(V)</code></p> <p><code>BOOST_PREDEF_MAKE_10_VR0(V)</code></p>
</li> </li>
<li> <li>
@ -6800,8 +6803,12 @@ expressions. It defaults to "c++", but can be any of: "c", "cpp",
<div class="sectionbody"> <div class="sectionbody">
<div class="sect2"> <div class="sect2">
<h3 id="_1_12"><a class="anchor" href="#_1_12"></a>6.1. 1.12</h3> <h3 id="_1_12"><a class="anchor" href="#_1_12"></a>6.1. 1.12</h3>
<div class="paragraph"> <div class="ulist">
<p>*</p> <ul>
<li>
<p>Switch to using the endian.h header on OpenBSD. (Brad Smith)</p>
</li>
</ul>
</div> </div>
</div> </div>
<div class="sect2"> <div class="sect2">

View File

@ -32,7 +32,7 @@ http://libcxx.llvm.org/[libc++] {CPP} Standard Library.
#if defined(_LIBCPP_VERSION) #if defined(_LIBCPP_VERSION)
# undef BOOST_LIB_STD_CXX # undef BOOST_LIB_STD_CXX
# define BOOST_LIB_STD_CXX BOOST_PREDEF_MAKE_10_VPPP(_LIBCPP_VERSION) # define BOOST_LIB_STD_CXX BOOST_PREDEF_MAKE_10_VVPPP(_LIBCPP_VERSION)
#endif #endif
#if BOOST_LIB_STD_CXX #if BOOST_LIB_STD_CXX

View File

@ -66,6 +66,10 @@ Macros are:
*/ // end::reference[] */ // end::reference[]
#define BOOST_PREDEF_MAKE_10_VPPP(V) BOOST_VERSION_NUMBER(((V)/1000)%10,0,(V)%1000) #define BOOST_PREDEF_MAKE_10_VPPP(V) BOOST_VERSION_NUMBER(((V)/1000)%10,0,(V)%1000)
/* tag::reference[] /* tag::reference[]
* `BOOST_PREDEF_MAKE_10_VVPPP(V)`
*/ // end::reference[]
#define BOOST_PREDEF_MAKE_10_VVPPP(V) BOOST_VERSION_NUMBER(((V)/1000)%100,0,(V)%1000)
/* tag::reference[]
* `BOOST_PREDEF_MAKE_10_VR0(V)` * `BOOST_PREDEF_MAKE_10_VR0(V)`
*/ // end::reference[] */ // end::reference[]
#define BOOST_PREDEF_MAKE_10_VR0(V) BOOST_VERSION_NUMBER(((V)/100)%10,((V)/10)%10,0) #define BOOST_PREDEF_MAKE_10_VR0(V) BOOST_VERSION_NUMBER(((V)/100)%10,((V)/10)%10,0)