Constrained genericity: Difference between revisions

Content added Content deleted
(Added C++ solution)
m (minor fix of template name)
Line 675: Line 675:


template < T >
template < T >
if (IsBaseOf< T, IEdible >)
if (IsDerivedOf< T, IEdible >)
struct FoodBox
struct FoodBox
{
{