I have to return an int and a function object to the caller, I was thought of returning a tuple like make_tuple(int,[](some){})
I am now on GCC that doesn't support decltpe(auto)
as a return type, is ther any way i could make my return type as std::tuple<int,auto> myfun()
right now I've been doing like below(but not sure)
auto myfun()->decltype(make_tuple(100,p))
{
auto p=[](some){};
return make_tuple(100,p);
}
what I am doing is ok?