I have the following function:
inline auto iterateSomething(obj & o) { auto iterators = baseIterator(o); auto tranformer = boost::bind(transofrmToSomething, _1, o); typedef boost::transform_iterator<decltype(tranformer), decltype(iterators.first)> iterator_t; iterator_t begin(iterators.first, tranformer); iterator_t end(iterators.second, tranformer); return std::make_pair(begin, end); }
As you can see, I do not know the return value, and even if I put the int there and later copied the type from the error message, its really long type ...
Is there a way to specify the return type as the only return type in the function? is there any workaround unrelated to the huge type in the return type?
source share