diff --git a/bind_as_compose.cpp b/bind_as_compose.cpp index 999856c..8f07a63 100644 --- a/bind_as_compose.cpp +++ b/bind_as_compose.cpp @@ -19,10 +19,12 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #include #include +using namespace boost::placeholders; + std::string f(std::string const & x) { return "f(" + x + ")"; diff --git a/bind_visitor.cpp b/bind_visitor.cpp index 1ce7b53..763bf94 100644 --- a/bind_visitor.cpp +++ b/bind_visitor.cpp @@ -17,7 +17,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) @@ -31,6 +31,8 @@ #pragma warning(pop) #endif +using namespace boost::placeholders; + // struct visitor diff --git a/test/bind_and_or_test.cpp b/test/bind_and_or_test.cpp index 337a11e..7c7b6f1 100644 --- a/test/bind_and_or_test.cpp +++ b/test/bind_and_or_test.cpp @@ -17,7 +17,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) #pragma warning(push, 3) @@ -31,6 +31,8 @@ #include +using namespace boost::placeholders; + bool f( bool x ) { return x; diff --git a/test/bind_cdecl_mf_test.cpp b/test/bind_cdecl_mf_test.cpp index eaf84d6..4e795e9 100644 --- a/test/bind_cdecl_mf_test.cpp +++ b/test/bind_cdecl_mf_test.cpp @@ -27,7 +27,7 @@ int main() #define BOOST_MEM_FN_ENABLE_CDECL -#include +#include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) #pragma warning(push, 3) diff --git a/test/bind_const_test.cpp b/test/bind_const_test.cpp index 9647ca9..b52e3c3 100644 --- a/test/bind_const_test.cpp +++ b/test/bind_const_test.cpp @@ -18,7 +18,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) @@ -33,6 +33,8 @@ #include +using namespace boost::placeholders; + // long f_0() diff --git a/test/bind_cv_test.cpp b/test/bind_cv_test.cpp index 257aaa9..2c2bb8f 100644 --- a/test/bind_cv_test.cpp +++ b/test/bind_cv_test.cpp @@ -17,7 +17,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) #pragma warning(push, 3) diff --git a/test/bind_dm2_test.cpp b/test/bind_dm2_test.cpp index 4bac5c7..10a5a9e 100644 --- a/test/bind_dm2_test.cpp +++ b/test/bind_dm2_test.cpp @@ -17,7 +17,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) #pragma warning(push, 3) @@ -32,6 +32,8 @@ #include +using namespace boost::placeholders; + struct X { int m; diff --git a/test/bind_dm3_test.cpp b/test/bind_dm3_test.cpp index c9571d4..320ee27 100644 --- a/test/bind_dm3_test.cpp +++ b/test/bind_dm3_test.cpp @@ -17,7 +17,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) #pragma warning(push, 3) @@ -32,6 +32,8 @@ #include #include +using namespace boost::placeholders; + int main() { typedef std::pair pair_type; diff --git a/test/bind_dm_test.cpp b/test/bind_dm_test.cpp index 6710965..2369b71 100644 --- a/test/bind_dm_test.cpp +++ b/test/bind_dm_test.cpp @@ -17,7 +17,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) #pragma warning(push, 3) @@ -31,6 +31,8 @@ #include +using namespace boost::placeholders; + struct X { int m; diff --git a/test/bind_eq2_test.cpp b/test/bind_eq2_test.cpp index 3d7ca38..994225b 100644 --- a/test/bind_eq2_test.cpp +++ b/test/bind_eq2_test.cpp @@ -17,10 +17,12 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #include #include +using namespace boost::placeholders; + void f( int ) { } diff --git a/test/bind_eq3_test.cpp b/test/bind_eq3_test.cpp index 03a5593..d947e50 100644 --- a/test/bind_eq3_test.cpp +++ b/test/bind_eq3_test.cpp @@ -17,11 +17,13 @@ // http://www.boost.org/LICENSE_1_0.txt // -#include +#include #include #include #include +using namespace boost::placeholders; + int f( boost::weak_ptr wp ) { return wp.use_count(); diff --git a/test/bind_eq_test.cpp b/test/bind_eq_test.cpp index 742ac73..5524727 100644 --- a/test/bind_eq_test.cpp +++ b/test/bind_eq_test.cpp @@ -17,7 +17,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #include #ifdef BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP @@ -36,6 +36,8 @@ #include +using namespace boost::placeholders; + struct X { int i_; diff --git a/test/bind_fastcall_mf_test.cpp b/test/bind_fastcall_mf_test.cpp index e333ec7..48d4973 100644 --- a/test/bind_fastcall_mf_test.cpp +++ b/test/bind_fastcall_mf_test.cpp @@ -27,7 +27,7 @@ int main() #define BOOST_MEM_FN_ENABLE_FASTCALL -#include +#include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) #pragma warning(push, 3) diff --git a/test/bind_fastcall_test.cpp b/test/bind_fastcall_test.cpp index b48c071..3f941bd 100644 --- a/test/bind_fastcall_test.cpp +++ b/test/bind_fastcall_test.cpp @@ -27,7 +27,7 @@ int main() #define BOOST_BIND_ENABLE_FASTCALL -#include +#include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) #pragma warning(push, 3) @@ -41,6 +41,8 @@ int main() #include +using namespace boost::placeholders; + // long __fastcall f_0() diff --git a/test/bind_fn2_test.cpp b/test/bind_fn2_test.cpp index 93f587c..85ef7e3 100644 --- a/test/bind_fn2_test.cpp +++ b/test/bind_fn2_test.cpp @@ -17,7 +17,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) #pragma warning(push, 3) diff --git a/test/bind_fnobj2_test.cpp b/test/bind_fnobj2_test.cpp index a85fe5d..deb11a0 100644 --- a/test/bind_fnobj2_test.cpp +++ b/test/bind_fnobj2_test.cpp @@ -17,7 +17,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) #pragma warning(push, 3) diff --git a/test/bind_function2_test.cpp b/test/bind_function2_test.cpp index f991248..a281adb 100644 --- a/test/bind_function2_test.cpp +++ b/test/bind_function2_test.cpp @@ -10,10 +10,12 @@ // http://www.boost.org/LICENSE_1_0.txt // -#include +#include #include #include +using namespace boost::placeholders; + // void fv1( int & a ) diff --git a/test/bind_function_ap_test.cpp b/test/bind_function_ap_test.cpp index 67551d3..9593576 100644 --- a/test/bind_function_ap_test.cpp +++ b/test/bind_function_ap_test.cpp @@ -26,11 +26,13 @@ int main() # endif #endif -#include +#include #include #include #include +using namespace boost::placeholders; + // void fv1( std::auto_ptr p1 ) diff --git a/test/bind_function_test.cpp b/test/bind_function_test.cpp index 5ce18c4..809ec01 100644 --- a/test/bind_function_test.cpp +++ b/test/bind_function_test.cpp @@ -28,7 +28,7 @@ #pragma warning(pop) #endif -#include +#include #include int f( int x ) diff --git a/test/bind_fwd2_test.cpp b/test/bind_fwd2_test.cpp index 5b7bf9c..74ac5ed 100644 --- a/test/bind_fwd2_test.cpp +++ b/test/bind_fwd2_test.cpp @@ -10,9 +10,11 @@ // http://www.boost.org/LICENSE_1_0.txt // -#include +#include #include +using namespace boost::placeholders; + // int fv1( int const & a ) diff --git a/test/bind_fwd_test.cpp b/test/bind_fwd_test.cpp index 92bd3b1..70c3e95 100644 --- a/test/bind_fwd_test.cpp +++ b/test/bind_fwd_test.cpp @@ -10,9 +10,11 @@ // http://www.boost.org/LICENSE_1_0.txt // -#include +#include #include +using namespace boost::placeholders; + // void fv1( int & a ) diff --git a/test/bind_lookup_problem_test.cpp b/test/bind_lookup_problem_test.cpp index 269b80a..b83dffb 100644 --- a/test/bind_lookup_problem_test.cpp +++ b/test/bind_lookup_problem_test.cpp @@ -8,7 +8,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include template void value(); diff --git a/test/bind_mf2_test.cpp b/test/bind_mf2_test.cpp index c04f958..cced716 100644 --- a/test/bind_mf2_test.cpp +++ b/test/bind_mf2_test.cpp @@ -17,7 +17,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) #pragma warning(push, 3) diff --git a/test/bind_nested_rv_test.cpp b/test/bind_nested_rv_test.cpp index 281088f..01301b4 100644 --- a/test/bind_nested_rv_test.cpp +++ b/test/bind_nested_rv_test.cpp @@ -10,11 +10,13 @@ // http://www.boost.org/LICENSE_1_0.txt // -#include +#include #include #include #include +using namespace boost::placeholders; + // bool f1( boost::shared_ptr p1 ) diff --git a/test/bind_noexcept_mf_test.cpp b/test/bind_noexcept_mf_test.cpp index 752861c..d07039d 100644 --- a/test/bind_noexcept_mf_test.cpp +++ b/test/bind_noexcept_mf_test.cpp @@ -8,7 +8,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #include #include #include diff --git a/test/bind_noexcept_test.cpp b/test/bind_noexcept_test.cpp index 44af4f6..ffc4f77 100644 --- a/test/bind_noexcept_test.cpp +++ b/test/bind_noexcept_test.cpp @@ -8,10 +8,12 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #include #include +using namespace boost::placeholders; + #if defined(BOOST_NO_CXX11_NOEXCEPT) int main() diff --git a/test/bind_not_test.cpp b/test/bind_not_test.cpp index 27da3f2..6736c14 100644 --- a/test/bind_not_test.cpp +++ b/test/bind_not_test.cpp @@ -17,7 +17,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) #pragma warning(push, 3) @@ -31,6 +31,8 @@ #include +using namespace boost::placeholders; + template void test( F f, A1 a1, R r ) { BOOST_TEST( f(a1) == r ); diff --git a/test/bind_placeholder_test.cpp b/test/bind_placeholder_test.cpp index 174dd82..f646b41 100644 --- a/test/bind_placeholder_test.cpp +++ b/test/bind_placeholder_test.cpp @@ -18,7 +18,7 @@ // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) -#include +#include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) #pragma warning(push, 3) diff --git a/test/bind_ref_test.cpp b/test/bind_ref_test.cpp index f08172e..445de88 100644 --- a/test/bind_ref_test.cpp +++ b/test/bind_ref_test.cpp @@ -8,10 +8,12 @@ // http://www.boost.org/LICENSE_1_0.txt // -#include +#include #include #include +using namespace boost::placeholders; + struct X { int f( int x ) diff --git a/test/bind_rel_test.cpp b/test/bind_rel_test.cpp index 5c50b6f..183bbe6 100644 --- a/test/bind_rel_test.cpp +++ b/test/bind_rel_test.cpp @@ -17,7 +17,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) #pragma warning(push, 3) @@ -31,6 +31,8 @@ #include +using namespace boost::placeholders; + int f( int x ) { return x + x; diff --git a/test/bind_rv_sp_test.cpp b/test/bind_rv_sp_test.cpp index b5853cd..d0147c0 100644 --- a/test/bind_rv_sp_test.cpp +++ b/test/bind_rv_sp_test.cpp @@ -17,7 +17,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) #pragma warning(push, 3) diff --git a/test/bind_rvalue_test.cpp b/test/bind_rvalue_test.cpp index e0bd229..4f3644d 100644 --- a/test/bind_rvalue_test.cpp +++ b/test/bind_rvalue_test.cpp @@ -18,7 +18,7 @@ // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) -#include +#include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) #pragma warning(push, 3) @@ -32,6 +32,8 @@ #include +using namespace boost::placeholders; + // int f( int x ) diff --git a/test/bind_stateful_test.cpp b/test/bind_stateful_test.cpp index 04fc0e8..b2e26e3 100644 --- a/test/bind_stateful_test.cpp +++ b/test/bind_stateful_test.cpp @@ -17,7 +17,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) #pragma warning(push, 3) diff --git a/test/bind_stdcall_mf_test.cpp b/test/bind_stdcall_mf_test.cpp index a7570c2..878e03e 100644 --- a/test/bind_stdcall_mf_test.cpp +++ b/test/bind_stdcall_mf_test.cpp @@ -27,7 +27,7 @@ int main() #define BOOST_MEM_FN_ENABLE_STDCALL -#include +#include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) #pragma warning(push, 3) diff --git a/test/bind_stdcall_test.cpp b/test/bind_stdcall_test.cpp index a009c9a..e8b39af 100644 --- a/test/bind_stdcall_test.cpp +++ b/test/bind_stdcall_test.cpp @@ -29,7 +29,7 @@ int main() #define BOOST_BIND_ENABLE_STDCALL -#include +#include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) #pragma warning(push, 3) @@ -43,6 +43,8 @@ int main() #include +using namespace boost::placeholders; + // long __stdcall f_0() diff --git a/test/bind_test.cpp b/test/bind_test.cpp index ede5d49..9be7115 100644 --- a/test/bind_test.cpp +++ b/test/bind_test.cpp @@ -18,7 +18,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) @@ -33,6 +33,8 @@ #include +using namespace boost::placeholders; + // long f_0() diff --git a/test/bind_type_test.cpp b/test/bind_type_test.cpp index fc58bad..d824271 100644 --- a/test/bind_type_test.cpp +++ b/test/bind_type_test.cpp @@ -10,9 +10,11 @@ // http://www.boost.org/LICENSE_1_0.txt // -#include +#include #include +using namespace boost::placeholders; + // template struct X diff --git a/test/bind_unary_addr.cpp b/test/bind_unary_addr.cpp index b211f0f..f0032d1 100644 --- a/test/bind_unary_addr.cpp +++ b/test/bind_unary_addr.cpp @@ -17,7 +17,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) #pragma warning(push, 3) diff --git a/test/bind_unique_ptr_test.cpp b/test/bind_unique_ptr_test.cpp index 4e648f5..2042eef 100644 --- a/test/bind_unique_ptr_test.cpp +++ b/test/bind_unique_ptr_test.cpp @@ -18,10 +18,12 @@ int main() // http://www.boost.org/LICENSE_1_0.txt // -#include +#include #include #include +using namespace boost::placeholders; + // void fv1( std::unique_ptr p1 ) diff --git a/test/bind_visit_test.cpp b/test/bind_visit_test.cpp index 16299dd..25b1e39 100644 --- a/test/bind_visit_test.cpp +++ b/test/bind_visit_test.cpp @@ -15,7 +15,7 @@ // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) -#include +#include #include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) @@ -31,6 +31,8 @@ #include +using namespace boost::placeholders; + struct visitor { int hash; diff --git a/test/bind_void_dm_test.cpp b/test/bind_void_dm_test.cpp index ffa60f9..183fa29 100644 --- a/test/bind_void_dm_test.cpp +++ b/test/bind_void_dm_test.cpp @@ -18,7 +18,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) @@ -33,6 +33,8 @@ #include +using namespace boost::placeholders; + // struct Z diff --git a/test/bind_void_mf_test.cpp b/test/bind_void_mf_test.cpp index e66a9c8..104b2fd 100644 --- a/test/bind_void_mf_test.cpp +++ b/test/bind_void_mf_test.cpp @@ -18,7 +18,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) diff --git a/test/bind_void_test.cpp b/test/bind_void_test.cpp index bb1e80d..263a3a3 100644 --- a/test/bind_void_test.cpp +++ b/test/bind_void_test.cpp @@ -18,7 +18,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#include +#include #include #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) @@ -33,6 +33,8 @@ #include +using namespace boost::placeholders; + // long global_result; diff --git a/test/placeholder_std_bind_test.cpp b/test/placeholder_std_bind_test.cpp index 3034b8e..96a486a 100644 --- a/test/placeholder_std_bind_test.cpp +++ b/test/placeholder_std_bind_test.cpp @@ -18,10 +18,12 @@ int main() #else -#include +#include #include #include +using namespace boost::placeholders; + namespace std { diff --git a/test/protect_test.cpp b/test/protect_test.cpp index 0da7d51..c4049bf 100644 --- a/test/protect_test.cpp +++ b/test/protect_test.cpp @@ -8,10 +8,12 @@ // http://www.boost.org/LICENSE_1_0.txt) #include -#include +#include #include +using namespace boost::placeholders; + int f(int x) { return x; diff --git a/test/quick.cpp b/test/quick.cpp index 9aa215c..8394427 100644 --- a/test/quick.cpp +++ b/test/quick.cpp @@ -1,5 +1,5 @@ // -// quick.cpp - a quick test for boost/bind.hpp +// quick.cpp - a quick test for boost/bind/bind.hpp // // Copyright 2017 Peter Dimov // @@ -9,9 +9,11 @@ // http://www.boost.org/LICENSE_1_0.txt // -#include +#include #include +using namespace boost::placeholders; + int f( int a, int b, int c ) { return a + 10 * b + 100 * c;