forked from boostorg/function_types
Compare commits
10 Commits
svn-branch
...
svn-branch
Author | SHA1 | Date | |
---|---|---|---|
7ce07a8920 | |||
e39914bddd | |||
64776ee43c | |||
d3b53cbdf8 | |||
0bf0587f58 | |||
1b4fdee6ff | |||
b7da1bd1ab | |||
8554f430fe | |||
ee8ed76bc5 | |||
e60e1b82aa |
@ -6,31 +6,25 @@
|
||||
|
||||
# Generates preprocessed files with wave.
|
||||
|
||||
rule wave
|
||||
{
|
||||
Depends $1 : $2 ;
|
||||
}
|
||||
|
||||
actions wave
|
||||
{
|
||||
../../../dist/bin/wave -S../../.. $(>) -o $(<)
|
||||
$(>[1]) -S../../.. $(>[2]) -o $(<)
|
||||
}
|
||||
|
||||
make ../../../libs/function_types/build/timestamps/arity_loops
|
||||
: preprocess_arity_loops.cpp : wave
|
||||
W = ../../../tools/wave/build//wave ;
|
||||
|
||||
make arity_loops
|
||||
: preprocess_arity_loops.cpp $(W) : wave : <location>build/timestamps
|
||||
;
|
||||
|
||||
explicit ../../../libs/function_types/build/timestamps/arity_loops ;
|
||||
|
||||
make ../../../libs/function_types/build/timestamps/encoding
|
||||
: preprocess_encoding.cpp : wave
|
||||
make encoding
|
||||
: preprocess_encoding.cpp $(W) : wave : <location>build/timestamps
|
||||
;
|
||||
|
||||
explicit ../../../libs/function_types/build/timestamps/encoding ;
|
||||
|
||||
make ../../../libs/function_types/build/timestamps/cc_names
|
||||
: preprocess_cc_names.cpp : wave
|
||||
make cc_names
|
||||
: preprocess_cc_names.cpp $(W) : wave : <location>build/timestamps
|
||||
;
|
||||
|
||||
explicit ../../../libs/function_types/build/timestamps/cc_names ;
|
||||
|
||||
explicit arity_loops encoding cc_names ;
|
||||
|
||||
|
@ -16,12 +16,19 @@ namespace ft = boost::function_types;
|
||||
|
||||
class C;
|
||||
typedef C func();
|
||||
typedef C const c_func();
|
||||
typedef C (*func_ptr)();
|
||||
typedef C const (*c_func_ptr)();
|
||||
typedef C (&func_ref)();
|
||||
typedef C const (&c_func_ref)();
|
||||
typedef C (C::*mem_func_ptr)();
|
||||
typedef C (C::*c_mem_func_ptr)() const;
|
||||
typedef C (C::*v_mem_func_ptr)() volatile;
|
||||
typedef C (C::*cv_mem_func_ptr)() const volatile;
|
||||
typedef C const (C::*c_mem_func_ptr)();
|
||||
typedef C (C::*mem_func_ptr_c)() const;
|
||||
typedef C const (C::*c_mem_func_ptr_c)() const;
|
||||
typedef C (C::*mem_func_ptr_v)() volatile;
|
||||
typedef C const (C::*c_mem_func_ptr_v)() volatile;
|
||||
typedef C (C::*mem_func_ptr_cv)() const volatile;
|
||||
typedef C const (C::*c_mem_func_ptr_cv)() const volatile;
|
||||
typedef int C::* mem_ptr;
|
||||
typedef int const C::* c_mem_ptr;
|
||||
|
||||
@ -29,28 +36,56 @@ BOOST_MPL_ASSERT((
|
||||
boost::is_same<ft::result_type<func>::type,C>
|
||||
));
|
||||
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<ft::result_type<c_func>::type,C const>
|
||||
));
|
||||
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<ft::result_type<func_ptr>::type,C>
|
||||
));
|
||||
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<ft::result_type<c_func_ptr>::type,C const>
|
||||
));
|
||||
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<ft::result_type<func_ref>::type,C>
|
||||
));
|
||||
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<ft::result_type<c_func_ref>::type,C const>
|
||||
));
|
||||
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<ft::result_type<mem_func_ptr>::type,C>
|
||||
));
|
||||
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<ft::result_type<c_mem_func_ptr>::type,C>
|
||||
boost::is_same<ft::result_type<c_mem_func_ptr>::type,C const>
|
||||
));
|
||||
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<ft::result_type<v_mem_func_ptr>::type,C>
|
||||
boost::is_same<ft::result_type<mem_func_ptr_c>::type,C>
|
||||
));
|
||||
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<ft::result_type<cv_mem_func_ptr>::type,C>
|
||||
boost::is_same<ft::result_type<c_mem_func_ptr_c>::type,C const>
|
||||
));
|
||||
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<ft::result_type<mem_func_ptr_v>::type,C>
|
||||
));
|
||||
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<ft::result_type<c_mem_func_ptr_v>::type,C const>
|
||||
));
|
||||
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<ft::result_type<mem_func_ptr_cv>::type,C>
|
||||
));
|
||||
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<ft::result_type<c_mem_func_ptr_cv>::type,C const>
|
||||
));
|
||||
|
||||
BOOST_MPL_ASSERT((
|
||||
|
Reference in New Issue
Block a user