Linked by Thom Holwerda on Thu 30th Oct 2008 12:53 UTC, submitted by CPPfanboy
Permalink for comment 335952
To read all comments associated with this story, please click here.
To read all comments associated with this story, please click here.




Member since:
2006-08-29
This is why C++ introduced a wonder called references.
You can...in C++. Just use templates and operator overloading with your "structs" (which are just class's with public visibility by default), ignore constructors, destructors, inheritance and member functions and go for it. Nobody is stopping you.
If you use extern "C" {} blocks you'll even get C binary compatibility.
Edited 2008-11-01 12:20 UTC