Ticket #3139: typeof.hpp

File typeof.hpp, 1.4 KB (added by anonymous, 13 years ago)

bind/typeof.hpp

Line 
1#ifndef BOOST_BIND_TYPEOF_HPP_INCLUDED
2#define BOOST_BIND_TYPEOF_HPP_INCLUDED
3
4//
5// typeof.hpp - type and template registrations so that bind can be used with the Boost.Typeof library.
6//
7// Copyright (c) 2009 Steven Watanabe
8// Copyright (c) 2009 Gevorg Voskanyan
9//
10// Distributed under the Boost Software License, Version 1.0. (See
11// accompanying file LICENSE_1_0.txt or copy at
12// http://www.boost.org/LICENSE_1_0.txt)
13//
14
15#include <boost/typeof/typeof.hpp>
16#include <boost/bind.hpp>
17
18#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
19
20// bind_t
21BOOST_TYPEOF_REGISTER_TEMPLATE( boost::_bi::bind_t, 3 );
22
23// value
24BOOST_TYPEOF_REGISTER_TEMPLATE( boost::_bi::value, 1 );
25
26// arg
27BOOST_TYPEOF_REGISTER_TEMPLATE( boost::arg, (int) );
28
29// listN
30BOOST_TYPEOF_REGISTER_TYPE( boost::_bi::list0 );
31BOOST_TYPEOF_REGISTER_TEMPLATE( boost::_bi::list1, 1 );
32BOOST_TYPEOF_REGISTER_TEMPLATE( boost::_bi::list2, 2 );
33BOOST_TYPEOF_REGISTER_TEMPLATE( boost::_bi::list3, 3 );
34BOOST_TYPEOF_REGISTER_TEMPLATE( boost::_bi::list4, 4 );
35BOOST_TYPEOF_REGISTER_TEMPLATE( boost::_bi::list5, 5 );
36BOOST_TYPEOF_REGISTER_TEMPLATE( boost::_bi::list6, 6 );
37BOOST_TYPEOF_REGISTER_TEMPLATE( boost::_bi::list7, 7 );
38BOOST_TYPEOF_REGISTER_TEMPLATE( boost::_bi::list8, 8 );
39BOOST_TYPEOF_REGISTER_TEMPLATE( boost::_bi::list9, 9 );
40
41#endif // #ifndef BOOST_BIND_TYPEOF_HPP_INCLUDED