Skip to content

Commit

Permalink
Update boost/detail includes
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Jan 4, 2024
1 parent 021826f commit 5a68a35
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 45 deletions.
13 changes: 1 addition & 12 deletions test/mem_fn_dm_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,7 @@
//

#include <boost/mem_fn.hpp>

#if defined(BOOST_MSVC) && (BOOST_MSVC < 1300)
#pragma warning(push, 3)
#endif

#include <iostream>

#if defined(BOOST_MSVC) && (BOOST_MSVC < 1300)
#pragma warning(pop)
#endif

#include <boost/detail/lightweight_test.hpp>
#include <boost/core/lightweight_test.hpp>

struct X
{
Expand Down
13 changes: 1 addition & 12 deletions test/mem_fn_eq_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,7 @@
//

#include <boost/mem_fn.hpp>

#if defined(BOOST_MSVC) && (BOOST_MSVC < 1300)
#pragma warning(push, 3)
#endif

#include <iostream>

#if defined(BOOST_MSVC) && (BOOST_MSVC < 1300)
#pragma warning(pop)
#endif

#include <boost/detail/lightweight_test.hpp>
#include <boost/core/lightweight_test.hpp>

struct X
{
Expand Down
2 changes: 1 addition & 1 deletion test/mem_fn_ref_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include <boost/mem_fn.hpp>
#include <boost/ref.hpp>
#include <boost/detail/lightweight_test.hpp>
#include <boost/core/lightweight_test.hpp>

struct X
{
Expand Down
19 changes: 0 additions & 19 deletions test/mem_fn_unary_addr_test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <boost/config.hpp>
#include <boost/detail/workaround.hpp>

#if defined(BOOST_MSVC)
#pragma warning(disable: 4786) // identifier truncated in debug info
Expand All @@ -19,17 +18,8 @@
//

#include <boost/mem_fn.hpp>

#if defined(BOOST_MSVC) && (BOOST_MSVC < 1300)
#pragma warning(push, 3)
#endif

#include <iostream>

#if defined(BOOST_MSVC) && (BOOST_MSVC < 1300)
#pragma warning(pop)
#endif

unsigned int hash = 0;

struct X
Expand Down Expand Up @@ -83,20 +73,11 @@ template<class T> class Y
}
};

#if defined( BOOST_BORLANDC ) && BOOST_WORKAROUND( BOOST_BORLANDC, BOOST_TESTED_AT( 0x620 ) )
namespace boost
{
#endif

template<class T> T * get_pointer( Y< T > const & y )
{
return y.get();
}

#if defined( BOOST_BORLANDC ) && BOOST_WORKAROUND( BOOST_BORLANDC, BOOST_TESTED_AT( 0x620 ) )
} // namespace boost
#endif

int detect_errors(bool x)
{
if( x )
Expand Down
2 changes: 1 addition & 1 deletion test/ref_fn_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// http://www.boost.org/LICENSE_1_0.txt

#include <boost/ref.hpp>
#include <boost/detail/lightweight_test.hpp>
#include <boost/core/lightweight_test.hpp>


void f0()
Expand Down

0 comments on commit 5a68a35

Please sign in to comment.