The problem is that the compiler doesn’t know how to deal with a function returning multiple values. restapisecurity 3 years ago The solution is to tell it explicitly using std::tie https://t.co/macFD98De8