Fixes #292 ("Forward declarations of std types cause compilation errors on some platforms")

This commit is contained in:
Ion Gaztañaga
2024-10-19 23:09:28 +02:00
parent 974dc35b68
commit 7398ab9bae
3 changed files with 20 additions and 8 deletions

View File

@ -802,6 +802,15 @@ Special thanks to:
[section:release_notes Release Notes]
[section:release_notes_boost_1_87 Boost 1.87 Release]
* Fixed bugs:
* [@https://github.com/boostorg/move/issues/292 Git Issue #292: ['"Forward declarations of std types cause compilation errors on some platforms"]].
[endsect]
Forward declarations of std types cause compilation errors on some platforms #292
[section:release_notes_boost_1_85 Boost 1.85 Release]
* Fixed bugs:

View File

@ -23,12 +23,12 @@
#elif defined(BOOST_GNU_STDLIB) && defined(_GLIBCXX_BEGIN_NAMESPACE) //GCC >= 4.2
#define BOOST_MOVE_STD_NS_BEG _GLIBCXX_BEGIN_NAMESPACE(std)
#define BOOST_MOVE_STD_NS_END _GLIBCXX_END_NAMESPACE
#else
#if defined(_MSC_VER) && (_MSC_VER >= 1915)
#pragma warning (push)
#pragma warning (disable : 4643) // Forward declaring 'X' in namespace std is not permitted by the C++ Standard
#endif
#define BOOST_MOVE_STD_NS_BEG namespace std{
#define BOOST_MOVE_STD_NS_END }
#elif defined(BOOST_DINKUMWARE_STDLIB)
#define BOOST_MOVE_STD_NS_BEG _STD_BEGIN
#define BOOST_MOVE_STD_NS_END _STD_END
#endif
#if defined(_MSC_VER) && (_MSC_VER >= 1915)
#pragma warning (push)
#pragma warning (disable : 4643) // Forward declaring 'X' in namespace std is not permitted by the C++ Standard
#endif

View File

@ -14,3 +14,6 @@
#elif defined(_MSC_VER) && (_MSC_VER >= 1915)
#pragma warning (pop)
#endif //BOOST_MOVE_STD_NS_GCC_DIAGNOSTIC_PUSH
#undef BOOST_MOVE_STD_NS_BEG
#undef BOOST_MOVE_STD_NS_END