According to the standard, a conversion function has a function-id operator
conversion-type-id, which would look like, say, operator char(&)[4]
I believe. But I cannot figure out where to put the function parameter list. gcc does not accept either of operator char(&())[4]
or operator char(&)[4]()
or anything I can think of.
Now, gcc seems to accept (&operator char ())[4]
but clang does not, and I am inclined to not either, since it does not seem to fit the grammar as I understand it.
I do not want to use a typedef
because I want to avoid polluting the namespace with it.