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 ( |
if (IsDerivedOf< T, IEdible >) |
||
struct FoodBox |
struct FoodBox |
||
{ |
{ |