-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CondaURL::pretty_str #2830
Add CondaURL::pretty_str #2830
Conversation
307ab6c
to
5db324c
Compare
5db324c
to
0d4c975
Compare
@@ -12,6 +12,43 @@ | |||
|
|||
namespace mamba::util | |||
{ | |||
namespace detail | |||
{ | |||
// Working around MSVC limitation on private inheritance + using directive |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you detail the limitations? I never had any issue with using private inheritance + using directive on Windows, so this must be specific to some uses.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works for methods but not dependent types.
class URL {
public:
enum class StripScheme : bool { no, yes };
};
class CondaURL : private URL {
public:
using URL::StripScheme;
};
void f() {
CondaURL::StripScheme strip = {}; // Compile error: private field of URL
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or maybe I missed somthing...
// clang-format off | ||
enum class StripScheme : bool { no, yes }; | ||
enum class HidePassword : bool { no, yes }; | ||
struct Encode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the limitations mentionned above due to inner types?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
Forgot it in the previous PR