Add visibility attributes to rcp_managed()
This commit is contained in:
1 parent
eaad6ba6e0
commit
83ca3d8893
2 files changed
+14
-15
No files matched your search
+3
-6
@@ -9,6 +9,7 @@ static int myderived_destruct;
|
||||
class MyBase
|
||||
{
|
||||
rcp_root();
|
||||
rcp_managed(MyBase);
|
||||
|
||||
protected:
|
||||
MyBase(int x, int y)
|
||||
@@ -20,13 +21,12 @@ protected:
|
||||
{
|
||||
mybase_destruct++;
|
||||
}
|
||||
|
||||
public:
|
||||
rcp_managed(MyBase);
|
||||
};
|
||||
|
||||
class MyDerived : public MyBase
|
||||
{
|
||||
rcp_managed(MyDerived);
|
||||
|
||||
protected:
|
||||
MyDerived(double v) : MyBase(1, 2)
|
||||
{
|
||||
@@ -37,9 +37,6 @@ protected:
|
||||
{
|
||||
myderived_destruct++;
|
||||
}
|
||||
|
||||
public:
|
||||
rcp_managed(MyDerived)
|
||||
};
|
||||
|
||||
void t1()
|
||||
|
||||
Reference in new issue
Block a user