Is the following function legal? If not, why not? If it is legal, what, if any, are the restrictions on the argument type(s) that can be passed, and what is the return type?
templateauto fcn3(It beg, It end) -> decltype(*beg + 0){ // process the range return *beg; // return a copy of an element from the range}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.