
3 Jun
2017
3 Jun
'17
4:27 p.m.
Vicente J. Botet Escriba wrote:
What about the non-member function, so that we don't have code as x.template subset<E2...>() and we have subset<E2...>(x) instead?
You're right about the need for .template here, but I'm not sure that the need to call this function would be frequent enough to justify putting it into the outer namespace (potentially std). Leaving it as a member seems an acceptable compromise to me. Do you have any comments about my proposed expected<T, E...>? Overall impression? Good idea? Bad, no reason to waste time with it?