boost_has_log1p.ipp 553 B

123456789101112131415161718192021222324
  1. // (C) Copyright John Maddock 2005.
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. // See http://www.boost.org/libs/config for most recent version.
  6. // MACRO: BOOST_HAS_LOG1P
  7. // TITLE: log1p
  8. // DESCRIPTION: The std lib has a C99-conforming log1p function.
  9. #include <math.h>
  10. namespace boost_has_log1p{
  11. int test()
  12. {
  13. double x = 0.5;
  14. x = ::log1p(x);
  15. (void)x;
  16. return 0;
  17. }
  18. }