How would DR1484 interact with function return type deduction. Would this
still not require the patch?
template <typename Type>
struct Container {
template <typename InnerType>
auto Test(InnerType Param) {
Type Local;
return Local.LocalFunction(Param);
}
};
template <typename FuncType>
auto Func(FuncType Param) {
auto Lambda = [] (auto ParamInner) {
return FuncType() + ParamInner;
};
return Container<decltype(Lambda)>();
}
int main() {
auto LocalContainer = Func(5);
auto Value = LocalContainer.Test(5.5);
return 0;
}
http://llvm-reviews.chandlerc.com/D1358
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits