minus-squarenintendiator@feddit.cltoProgrammer Humor@lemmy.ml•Solutions? Where we're going, we don't need solutions.linkfedilinkEnglisharrow-up1·edit-210 months agoC: Problem → return Solution; C++: Problem → const [auto]&& (Problem&& problem) noexcept(noexcept( Solution<Problem>{}(std::forward<Problem>(problem)) )) { return Solution<Problem>{}(std::forward<Problem>(problem)); } -> decltype( Solution<Problem>{}(std::forward<Problem>(problem)) ) linkfedilink
C:
Problem
→return Solution;
C++:
Problem
→const [auto]&& (Problem&& problem) noexcept(noexcept( Solution<Problem>{}(std::forward<Problem>(problem)) )) { return Solution<Problem>{}(std::forward<Problem>(problem)); } -> decltype( Solution<Problem>{}(std::forward<Problem>(problem)) )