recursive dereferencing template revisited
ok, so my last posting on the subject wasn't exactly correct (big suprise). what I'd really like to know is if the solution is complete. I figured that if anyone could break my code it'd be you guys. =)
the purpose of the library is of course to provide a compile-time dereferencing mechanism for pointers and specialized types. for example:
Code:
#include <iostream>
#include "content.h"
using namespace std;
using namespace xtd;
int
main( void )
{
int
i = 1024,
* p = &i,
** pp = &p,
*** ppp = &pp;
extract( ppp )++;
cout << extract( ppp ) << endl;
return 0;
}
below I've attached the header file and some minor examples. any comments or suggestions are welcome.