|
// 030211defaulttmppara
#include <iostream>
using namespace std;
namespace NS {
template <typename R> class Marshal {
public:
Marshal() {}
~Marshal() {}
};
template <class R,class Marsh=Marshal<R> > class Something {
public:
Something() {}
~Something() {}
void no_op() { std::cout << "fully templated version\n"; }
};
}
//using namespace NS;
class MyClass {
public:
MyClass() {}
~MyClass() {}
NS::Something<int> something;
};
#ifdef __MAKECINT__
#pragma link C++ nestedclasses;
#pragma link C++ nestedtypedefs;
#pragma link C++ namespace NS;
#pragma link C++ class NS::Marshal<int>;
#pragma link C++ class MyClass;
#endif
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.