Copyright Matus Chochlik. Distributed under the Boost Software License, Version 1.0. See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
#include <iostream>
auto main(main_ctx& ctx) -> int {
const auto& bi = ctx.build();
const auto [major, minor, patch, commit] = bi.version_tuple();
std::cout << "version " << major << '.' << minor << '.' << patch << '-'
<< commit << std::endl;
if(bi.version_at_least(0, 37, 2, 15)) {
std::cout << "version recent enough" << std::endl;
}
return 0;
}
}