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 a development version of boost.

Chapter 18. 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.