mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
22 lines
565 B
C++
22 lines
565 B
C++
#include <CtrlLib/CtrlLib.h>
|
|
|
|
template <class T, class S>
|
|
struct ATesting : public Moveable<S> {
|
|
void Assign(const ATesting& s);
|
|
void Assign(const T *s, int len);
|
|
void DeepAssign(const ATesting& s);
|
|
};
|
|
|
|
class Testing : public ATesting<char, Testing> {
|
|
typedef ATesting<char, Testing> B;
|
|
|
|
Testing(Data *data) { ptr = CreateEmpty(data); }
|
|
Testing(int, char *p) : B(0, p) {}
|
|
|
|
Testing Mid(int pos, int length) const { return Testing(0, B::Mid(pos, length)); }
|
|
};
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
MyHello().Run();
|
|
}
|