#include <boost/tuple/tuple.hpp>
#include <boost/tuple/tuple_io.hpp>
#include <iostream>
boost::tuple<int, int, int> sort3(const int x, const int y, const int z) {
int x_ = x, y_ = y, z_ = z;
if (x_ > y_)
std::swap(x_, y_);
if (y_ > z_)
std::swap(y_, z_);
if (x_ > y_)
std::swap(x_, y_);
return boost::make_tuple(x_, y_, z_);
}
boost::tuple<int, int> midHigh(boost::tuple<int, int, int> const& arg) {
return boost::make_tuple(arg.get<1>(), arg.get<2>());
}
int main() {
int x = 214, y = 88, z = 13;
// std::cin >> x >> y >> z;
std::cout << midHigh(sort3(x, y, z)) << std::endl;
}

こんなんでいいんじゃないっすかね