Hi,
I'm trying to create my own struct that is compatible with boost::mpl::or_
as well as boost::enable_if.
I find that using boost::mpl::or_ requires that my structure have a 'type'
member, and enable_if looks for 'value'. Must I define both? What is the
proper way to handle this? Below is my structure:
template< typename t_type >
struct is_sink
{
typedef typename boost::mpl::or_<
vfx::io::is_device
::type& operator>> ( t_source& source, t_data& data ) { source.Read( reinterpret_castboost::uint8_t*( &data ), sizeof( t_data ) ); return source; }