79549357

Date: 2025-04-01 23:17:25
Score: 2.5
Natty:
Report link

Thank you for your hints the solution was adding typename before one<_Return>::UseType (*)(void);
so that it looks like:

using PF = typename one<_Return>::UseType (*)(void);

Here is a link with more info type_alias

Additionally, class one has to be defined as @RemyLebeau suggested:

template <class _Type>
class one {
    public:
      using UseType = _Type;

};

by some reason _Type, and _Return was not a problem. Maybe because in the case of templates they are reduced to local scope, it's just a guess.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Has code block (-0.5):
  • User mentioned (1): @RemyLebeau
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ulises V.