pelib  2.0.0
Can_copy< T1, T2 > Struct Template Reference

#include <constraints.hpp>

List of all members.

Public Member Functions

 Can_copy ()

Static Public Member Functions

static void constraints (T1 a, T2 b)

Detailed Description

template<class T1, class T2>
struct Can_copy< T1, T2 >

Yields an error if and instance of T2 cannot be copied into an instance of T1. See http://www.stroustrup.com/bs_faq2.html#constraints

Definition at line 31 of file constraints.hpp.


Constructor & Destructor Documentation

template<class T1 , class T2 >
Can_copy< T1, T2 >::Can_copy ( ) [inline]

Definition at line 33 of file constraints.hpp.


Member Function Documentation

template<class T1 , class T2 >
static void Can_copy< T1, T2 >::constraints ( T1  a,
T2  b 
) [inline, static]

Definition at line 32 of file constraints.hpp.


The documentation for this struct was generated from the following file: