mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-16 05:42:20 +02:00
Fix some warnings within tests.
This commit is contained in:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user