Replace managed class with rcp_managed macro
This commit is contained in:
1 parent
f5d52dfe98
commit
fac82eaaad
2 files changed
+28
-12
No files matched your search
@@ -1,5 +1,23 @@
|
||||
#include <rcp.h>
|
||||
|
||||
class MyBase : public root
|
||||
{
|
||||
protected:
|
||||
MyBase(int x, int y) {}
|
||||
|
||||
public:
|
||||
rcp_managed(MyBase);
|
||||
};
|
||||
|
||||
class MyDerived : public MyBase
|
||||
{
|
||||
protected:
|
||||
MyDerived(double v) : MyBase(1, 2) {}
|
||||
|
||||
public:
|
||||
rcp_managed(MyDerived)
|
||||
};
|
||||
|
||||
int main(int argc, char * argv[])
|
||||
{
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user