1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #ifndef BOOST_BIND_ARG_HPP_INCLUDED
- #define BOOST_BIND_ARG_HPP_INCLUDED
- #if defined(_MSC_VER) && (_MSC_VER >= 1020)
- # pragma once
- #endif
- #include <boost/config.hpp>
- #include <boost/is_placeholder.hpp>
- namespace boost
- {
- template< int I > struct arg
- {
- arg()
- {
- }
- template< class T > arg( T const & )
- {
-
- typedef char T_must_be_placeholder[ I == is_placeholder<T>::value? 1: -1 ];
- }
- };
- template< int I > bool operator==( arg<I> const &, arg<I> const & )
- {
- return true;
- }
- #if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
- template< int I > struct is_placeholder< arg<I> >
- {
- enum _vt { value = I };
- };
- template< int I > struct is_placeholder< arg<I> (*) () >
- {
- enum _vt { value = I };
- };
- #endif
- }
- #endif
|