Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 VAOutline protected-using-public level error

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
superzmy Posted - Dec 19 2024 : 10:40:03 PM
class X
{
protected:
using A = void*;
public:
using B = int;
....
};

Outline public is son of protected
5   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Feb 14 2025 : 07:43:23 AM
That is terrible. Is that really better than ignoring the problem for now?

My first thought was to place the using statement into a namespace, on its own, and do a "using namespace" inside the struct, but that isn't compiling, which surprised me.
superzmy Posted - Feb 13 2025 : 9:51:18 PM
#define $$()
struct
{
protected:
using A = void *;
$$();
public:
using B = void *;
B a;
};

I will be killed by anyohter who read the code.
feline Posted - Feb 11 2025 : 07:56:04 AM
As a partial work around, you could try using a macro for the using statement, so going from:

class TestOutlineWithUsingInClass
{
protected:
	using A = void*;
public:
	using B = int;
};


to:

#define TYPE_A using A = void*
	
class TestOutlineWithUsingInClass
{
protected:
	TYPE_A;
public:
	using B = int;
};
superzmy Posted - Feb 11 2025 : 01:29:10 AM
Can I see the bug is fixed before I die
feline Posted - Dec 20 2024 : 10:08:58 AM
Interesting, and surprising. Thank you for the very clear sample code, I have put in a bug report for this:

case=165329

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000