Update of /cvsroot/boost/boost/libs/function_types/test/custom_ccs
In directory
sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv18022/function_types/test/custom_ccs
Added Files:
member_ccs.cpp member_ccs_exact.cpp nonmember_ccs.cpp
nonmember_ccs_exact.cpp
Log Message:
libs/function_types/* - check-in
--- NEW FILE: member_ccs.cpp ---
// (C) Copyright Tobias Schwinger
//
// Use modification and distribution are subject to the boost Software License,
// Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).
//------------------------------------------------------------------------------
#include <boost/mpl/assert.hpp>
#include <boost/mpl/vector.hpp>
#include <boost/function_types/member_function_pointer.hpp>
#include <boost/function_types/is_callable_builtin.hpp>
namespace ft = boost::function_types;
namespace mpl = boost::mpl;
typedef ft::stdcall_cc cc;
class C;
BOOST_MPL_ASSERT((
ft::is_callable_builtin<
ft::member_function_pointer<mpl::vector<int, C &>, cc>::type
>
));
BOOST_MPL_ASSERT((
ft::is_callable_builtin<
ft::member_function_pointer<mpl::vector<int, C const &>, cc>::type
>
));
BOOST_MPL_ASSERT((
ft::is_callable_builtin<
ft::member_function_pointer<mpl::vector<int, C volatile &>, cc>::type
>
));
BOOST_MPL_ASSERT((
ft::is_callable_builtin<
ft::member_function_pointer<mpl::vector<int, C const volatile &>, cc>::type
>
));
--- NEW FILE: member_ccs_exact.cpp ---
// (C) Copyright Tobias Schwinger
//
// Use modification and distribution are subject to the boost Software License,
// Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).
//------------------------------------------------------------------------------
#include <boost/mpl/assert.hpp>
#include <boost/mpl/vector.hpp>
#include <boost/function_types/member_function_pointer.hpp>
#include <boost/function_types/is_callable_builtin.hpp>
namespace ft = boost::function_types;
namespace mpl = boost::mpl;
typedef ft::stdcall_cc cc;
typedef ft::default_cc dc;
class C;
BOOST_MPL_ASSERT((
ft::is_callable_builtin< ft::member_function_pointer<mpl::vector<int, C &>,
cc>::type, cc >
));
BOOST_MPL_ASSERT((
ft::is_callable_builtin< ft::member_function_pointer<mpl::vector<int, C const
&>, cc>::type, cc >
));
BOOST_MPL_ASSERT((
ft::is_callable_builtin< ft::member_function_pointer<mpl::vector<int, C
volatile &>, cc>::type, cc >
));
BOOST_MPL_ASSERT((
ft::is_callable_builtin< ft::member_function_pointer<mpl::vector<int, C const
volatile &>, cc>::type, cc >
));
BOOST_MPL_ASSERT((
ft::is_callable_builtin< ft::member_function_pointer<mpl::vector<int, C &>
>::type, dc >
));
BOOST_MPL_ASSERT_NOT((
ft::is_callable_builtin< ft::member_function_pointer<mpl::vector<int, C &>,
cc>::type, dc >
));
BOOST_MPL_ASSERT_NOT((
ft::is_callable_builtin< ft::member_function_pointer<mpl::vector<int, C const
&>, cc>::type, dc >
));
BOOST_MPL_ASSERT_NOT((
ft::is_callable_builtin< ft::member_function_pointer<mpl::vector<int, C
volatile &>, cc>::type, dc >
));
BOOST_MPL_ASSERT_NOT((
ft::is_callable_builtin< ft::member_function_pointer<mpl::vector<int, C const
volatile &>, cc>::type, dc >
));
BOOST_MPL_ASSERT_NOT((
ft::is_callable_builtin< ft::member_function_pointer<mpl::vector<int, C &>
>::type, cc >
));
BOOST_MPL_ASSERT_NOT((
ft::is_callable_builtin< ft::member_function_pointer<mpl::vector<int, C &>,
cc>::type, dc >
));
--- NEW FILE: nonmember_ccs.cpp ---
// (C) Copyright Tobias Schwinger
//
// Use modification and distribution are subject to the boost Software License,
// Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).
//------------------------------------------------------------------------------
#include <boost/mpl/assert.hpp>
#include <boost/mpl/vector.hpp>
#include <boost/function_types/function_type.hpp>
#include <boost/function_types/function_pointer.hpp>
#include <boost/function_types/function_reference.hpp>
#include <boost/function_types/is_callable_builtin.hpp>
namespace ft = boost::function_types;
namespace mpl = boost::mpl;
typedef ft::stdcall_cc cc;
BOOST_MPL_ASSERT((
ft::is_callable_builtin<
ft::function_type<mpl::vector<void,int>, cc>::type
>
));
BOOST_MPL_ASSERT((
ft::is_callable_builtin<
ft::function_pointer<mpl::vector<void,int>, cc>::type
>
));
BOOST_MPL_ASSERT((
ft::is_callable_builtin<
ft::function_reference<mpl::vector<void,int>, cc>::type
>
));
--- NEW FILE: nonmember_ccs_exact.cpp ---
// (C) Copyright Tobias Schwinger
//
// Use modification and distribution are subject to the boost Software License,
// Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).
//------------------------------------------------------------------------------
#include <boost/mpl/assert.hpp>
#include <boost/mpl/vector.hpp>
#include <boost/function_types/function_type.hpp>
#include <boost/function_types/function_pointer.hpp>
#include <boost/function_types/function_reference.hpp>
#include <boost/function_types/is_callable_builtin.hpp>
namespace ft = boost::function_types;
namespace mpl = boost::mpl;
typedef ft::stdcall_cc cc;
typedef ft::default_cc dc;
BOOST_MPL_ASSERT((
ft::is_callable_builtin< ft::function_type<mpl::vector<void>,cc>::type, cc >
));
BOOST_MPL_ASSERT((
ft::is_callable_builtin< ft::function_pointer<mpl::vector<void>,cc>::type, cc
>
));
BOOST_MPL_ASSERT((
ft::is_callable_builtin< ft::function_reference<mpl::vector<void>,cc>::type,
cc >
));
BOOST_MPL_ASSERT((
ft::is_callable_builtin< ft::function_pointer<mpl::vector<void> >::type, dc >
));
BOOST_MPL_ASSERT_NOT((
ft::is_callable_builtin< ft::function_type<mpl::vector<void>, cc>::type, dc >
));
BOOST_MPL_ASSERT_NOT((
ft::is_callable_builtin< ft::function_pointer<mpl::vector<void>,cc>::type, dc
>
));
BOOST_MPL_ASSERT_NOT((
ft::is_callable_builtin< ft::function_reference<mpl::vector<void>,cc>::type,
dc >
));
BOOST_MPL_ASSERT_NOT((
ft::is_callable_builtin< ft::function_pointer<mpl::vector<void> >::type, cc >
));
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs