Closed strfry closed 5 years ago
Refers to #55
I hacked together this solution to resolve our naming of templates problem.
Now custom type names can be specified like this:
constexpr auto W_ClassNameOverride(w_internal::W_TypeWrap<StageQml> = {}) { return w_internal::makeStaticString("Stage"); }
There's a few points for discussion in there:
W_TypeWrap
Please have a look and comment.
Regards, Jonathan
The namespacing is off, it isn't so nice to require users to reach into the w_internal namespace
Maybe the function should be a member function.
Implemented as part of https://github.com/woboq/verdigris/pull/69
Refers to #55
I hacked together this solution to resolve our naming of templates problem.
Now custom type names can be specified like this:
There's a few points for discussion in there:
W_TypeWrap
template is introduced, to allow the override to be found anywhere via Argument-Dependent LookupPlease have a look and comment.
Regards, Jonathan