Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Chapter 15. Integer Utilities (Greatest Common Divisor and Least Common Multiple)

This code has now been moved to Boost.Integer, please see here.

Note that for the time being the headers <boost/math/common_factor.hpp>, <boost/math/common_factor_ct.hpp> and <boost/math/common_factor_rt.hpp> will continue to exist and redirect to the moved headers.