1
0
forked from boostorg/mpl

40 Commits

Author SHA1 Message Date
Alexander Grund
b440c45c28 Avoid Wzero-as-null-pointer-constant warning (#75)
Newer compilers may warn when using `0`, e.g.:
```
./boost/iterator/detail/facade_iterator_category.hpp:161:5: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
    BOOST_MPL_ASSERT_NOT((is_iterator_category<Traversal>));
    ^
./boost/mpl/assert.hpp:324:58: note: expanded from macro 'BOOST_MPL_ASSERT_NOT'
              boost::mpl::assert_not_arg( (void (*) pred)0, 1 ) \
```
2023-05-10 21:16:45 -06:00
Nikita Kniazev
8f10d06b96 Fix unused variable warning from BOOST_MPL_ASSERT_* on Clang 2022-05-01 17:23:44 -04:00
James E. King III
bd4ec497a8 Use BOOST_WORKAROUND when checking compiler level 2022-05-01 08:47:52 -04:00
Anis Ladram
4634ef904e Fix -Wparentheses warning not ignored on NVCC
BOOST_GCC is not defined for NVCC, therefore we should use BOOST_GCC_VERSION.
2022-05-01 08:47:52 -04:00
Edward Diener
3d8a60ed6a Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers. (#48)
Co-authored-by: Edward Diener <eldlistmailingz@tropicsoft.com>
2020-04-12 09:48:24 -07:00
Edward Diener
ac67f5952e Back out fix for VC++8.0 2018-11-14 11:54:53 -05:00
Robin Lindén
e44b2ae761 Fix BOOST_MPL_ASSERT_MSG for VC++8
The struct member function inside BOOST_MPL_ASSERT_MSG_IMPL was causing
multiple definitions of the same symbol when used inside e.g. template
functions.

An example of where this is a big issue is in the boost/geometry library
where you currently only can call each function once for each geometry
or you get hit by the multiple definitions linking error.

This fix* works around the issue by gracefully degrading to
BOOST_STATIC_ASSERT_MSG instead of failing during linking.
2018-08-20 19:23:02 +02:00
Romain Geissler
f48fd09d02 Ignore gcc 8 warnings. 2018-03-01 09:59:33 +01:00
David Olsen
a81b00a5f0 Update PGI C++ compiler support
Add PGI C++ to list of compilers that use enums rather than static constants for compile-time assertions, because, like GCC, PGI issues warnings for unused static constants.
2017-07-26 12:46:48 -07:00
K. Noel Belcourt
6a0f617a6c Revert "Merge pull request #11 from Lastique/modularization"
This reverts commit a9a1eddba8, reversing
changes made to d6bc9845ba.
2014-09-19 18:55:00 -06:00
Andrey Semashev
82890fd03e Moved Boost.MPL.Core headers to a sublibrary. 2014-08-30 17:21:16 +04:00
Eric Niebler
7f823bec1c mpl::for_each works on nvidia gpu's 2014-05-01 15:38:13 -07:00
Daniel James
db7e720ce1 Revert Stephen Kelly's changes.
They should really wait until MPL's dependencies have dealt with his
changes.
2014-03-25 08:33:44 +00:00
Stephen Kelly
27b31c31be MPL: Remove nntp_decl.hpp and obsolete includes.
[SVN r85961]
2013-09-26 14:10:37 +00:00
Stephen Kelly
8143a00562 MPL: Remove use of obsolete macro.
[SVN r85958]
2013-09-26 13:07:02 +00:00
Stephen Kelly
de207e3775 MPL: Remove assert workaround for no-longer-supported MSVC.
[SVN r85892]
2013-09-25 10:28:10 +00:00
Steven Watanabe
d6c3a16e1e Make BOOST_WORKAROUND consistent.
[SVN r84443]
2013-05-23 14:42:25 +00:00
Steven Watanabe
aa8e43a017 Work around VC11 bug when evaluating nested BOOST_MPL_ASSERTs.
[SVN r81027]
2012-10-20 16:43:51 +00:00
Aleksey Gurtovoy
d1197e1f7d $Source$ -> $Id$
[SVN r49239]
2008-10-10 09:10:26 +00:00
Nicola Musatti
0e43d67c9b Applied patch from ticket #2345
[SVN r49228]
2008-10-09 22:06:06 +00:00
Aleksey Gurtovoy
9a516fc3c1 Fix syntax errors
[SVN r36251]
2006-12-02 23:45:58 +00:00
Aleksey Gurtovoy
12c4f8e95c Introduce BOOST_MPL_AUX_PP_COUNTER to workaround MSVC 7.0+ issue with __LINE__ and Edit & Continue mode (http://thread.gmane.org/gmane.comp.lib.boost.user/23207/)
[SVN r36250]
2006-12-02 23:42:34 +00:00
Aleksey Gurtovoy
76680cf30e Merge GCC warnings fix from RC_1_34_0
[SVN r35998]
2006-11-10 21:32:25 +00:00
Aleksey Gurtovoy
1e2ecf080c Merge Borland fixes from RC_1_34_0
[SVN r35963]
2006-11-10 00:57:02 +00:00
Aleksey Gurtovoy
28101ddf68 More GCC 4.x workarounds merges from RC_1_34_0
[SVN r35961]
2006-11-10 00:40:43 +00:00
Aleksey Gurtovoy
2cf805d699 Merge fix from RC_1_34_0
[SVN r35935]
2006-11-09 01:12:50 +00:00
Aleksey Gurtovoy
e9184ee375 Merge vacpp MPL asserts config fixes from RC_1_34_0
[SVN r35929]
2006-11-09 00:13:22 +00:00
Aleksey Gurtovoy
99c280e3c8 Integrate GCC fixes from RC_1_34_0
[SVN r35896]
2006-11-07 09:03:36 +00:00
Aleksey Gurtovoy
81f7e4bb99 ADL fixes
[SVN r25453]
2004-09-28 13:56:59 +00:00
Aleksey Gurtovoy
03be656c75 fix MWCW function-scope assertions
[SVN r25185]
2004-09-18 06:33:05 +00:00
Aleksey Gurtovoy
e5093a77b3 MSVC < 7.1 workaround
[SVN r25119]
2004-09-15 15:29:45 +00:00
Aleksey Gurtovoy
3837920af0 restrict MWCW workaround to MWCW only
[SVN r25028]
2004-09-13 06:01:03 +00:00
Dave Abrahams
8c3f43daeb Workaround cw bug (from branch).
[SVN r24977]
2004-09-08 17:47:27 +00:00
Aleksey Gurtovoy
f46335fe1e workaround GCC 3.4.1 bug
[SVN r24971]
2004-09-08 13:04:24 +00:00
Ralf W. Grosse-Kunstleve
4870cdb458 fix typo
[SVN r24951]
2004-09-07 10:21:23 +00:00
Aleksey Gurtovoy
fe96e236ee asserts fix for MIPSpro 7.3
[SVN r24950]
2004-09-07 10:12:35 +00:00
Aleksey Gurtovoy
e100bd939c Borland workaround (http://article.gmane.org/gmane.comp.lib.boost.devel/108938/)
[SVN r24916]
2004-09-05 11:01:30 +00:00
Aleksey Gurtovoy
ff6d082918 fix GCC regression
[SVN r24911]
2004-09-05 09:08:26 +00:00
Aleksey Gurtovoy
fd0a7e59a0 configuration bugfix
[SVN r24882]
2004-09-03 00:10:42 +00:00
Aleksey Gurtovoy
1689c8ef83 merge new MPL version from 'mplbook' branch
[SVN r24874]
2004-09-02 15:41:37 +00:00