hartley.hpp 1.1 KB

123456789101112131415161718192021222324252627282930
  1. // Boost.Units - A C++ library for zero-overhead dimensional analysis and
  2. // unit/quantity manipulation and conversion
  3. //
  4. // Copyright (C) 2014 Erik Erlandson
  5. //
  6. // Distributed under the Boost Software License, Version 1.0. (See
  7. // accompanying file LICENSE_1_0.txt or copy at
  8. // http://www.boost.org/LICENSE_1_0.txt)
  9. #ifndef BOOST_UNITS_BASE_UNITS_INFORMATION_HARTLEY_HPP_INCLUDED
  10. #define BOOST_UNITS_BASE_UNITS_INFORMATION_HARTLEY_HPP_INCLUDED
  11. #include <boost/units/conversion.hpp>
  12. #include <boost/units/base_units/information/bit.hpp>
  13. BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(information, hartley,
  14. "hartley", "Hart",
  15. 3.321928094887363,
  16. boost::units::information::bit_base_unit,
  17. -703);
  18. #if BOOST_UNITS_HAS_BOOST_TYPEOF
  19. #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
  20. BOOST_TYPEOF_REGISTER_TYPE(boost::units::information::hartley_base_unit)
  21. #endif
  22. #endif // BOOST_UNITS_BASE_UNITS_INFORMATION_HARTLEY_HPP_INCLUDED