User Tools

Site Tools


managing_simple_inheritance_with_c_templates

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

managing_simple_inheritance_with_c_templates [2017/09/05 06:30]
xylene created
managing_simple_inheritance_with_c_templates [2017/09/05 08:33] (current)
xylene
Line 5: Line 5:
   * Several C++ features are missing from this, notably multiple inheritance. Some curse at multiple inheritance but as C++ has only the single feature for object model programming (unlike other languages with built in "​category",​ "​interface",​ "​extends"​ features I use multiple inheritance a lot, especially for interfaces.   * Several C++ features are missing from this, notably multiple inheritance. Some curse at multiple inheritance but as C++ has only the single feature for object model programming (unlike other languages with built in "​category",​ "​interface",​ "​extends"​ features I use multiple inheritance a lot, especially for interfaces.
  
 +<code cpp>
 +#include <​ptr.h>​
 +
 +int main(int argc, char * argv[])
 +{
 +    ptr<​void>​ _p_void;
 +    ​
 +    return -1;
 +}
 +</​code>​
managing_simple_inheritance_with_c_templates.txt ยท Last modified: 2017/09/05 08:33 by xylene