GMP version 5.1.0 (and, presumably, later versions) defines std::numeric_limits. http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=9f843aecc23981aec6ed1eaa8be06e6786a47f0d