Fix some warnings within tests.

This commit is contained in:
Kohei Takahashi
2015-01-21 01:13:19 +09:00
parent ce8bf1079a
commit 5e4978b870
5 changed files with 43 additions and 16 deletions

View File

@ -7,6 +7,7 @@
http://www.boost.org/LICENSE_1_0.txt).
==============================================================================*/
#include <boost/config.hpp>
#include <boost/fusion/functional/invocation/invoke_procedure.hpp>
#include <boost/detail/lightweight_test.hpp>
@ -65,9 +66,17 @@ class members
int binary_c(int & i, object) const { return i = data + 6; }
};
#ifdef BOOST_NO_CXX11_SMART_PTR
typedef std::auto_ptr<members > members_ptr;
typedef std::auto_ptr<members const> const_members_ptr;
#else
typedef std::unique_ptr<members > members_ptr;
typedef std::unique_ptr<members const> const_members_ptr;
#endif
members that;
std::auto_ptr<members> spt_that(new members);
std::auto_ptr<members const> spt_that_c(new members);
members_ptr spt_that(new members);
const_members_ptr spt_that_c(new members);
fusion::single_view<members > sv_obj_ctx( that);
fusion::single_view<members &> sv_ref_ctx( that);
@ -75,8 +84,8 @@ fusion::single_view<members *> sv_ptr_ctx(& that);
fusion::single_view<members const > sv_obj_c_ctx( that);
fusion::single_view<members const &> sv_ref_c_ctx( that);
fusion::single_view<members const *> sv_ptr_c_ctx(& that);
fusion::single_view<std::auto_ptr<members> const &> sv_spt_ctx(spt_that);
fusion::single_view< std::auto_ptr<members const> const &> sv_spt_c_ctx(spt_that_c);
fusion::single_view<members_ptr const &> sv_spt_ctx(spt_that);
fusion::single_view<const_members_ptr const &> sv_spt_c_ctx(spt_that_c);
struct fobj
{