information.hpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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_INFORMATION_BASE_DIMENSION_HPP
  10. #define BOOST_UNITS_INFORMATION_BASE_DIMENSION_HPP
  11. #include <boost/units/config.hpp>
  12. #include <boost/units/base_dimension.hpp>
  13. namespace boost {
  14. namespace units {
  15. /// base dimension of information
  16. struct information_base_dimension :
  17. boost::units::base_dimension<information_base_dimension, -700>
  18. { };
  19. } // namespace units
  20. } // namespace boost
  21. #if BOOST_UNITS_HAS_BOOST_TYPEOF
  22. #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
  23. BOOST_TYPEOF_REGISTER_TYPE(boost::units::information_base_dimension)
  24. #endif
  25. namespace boost {
  26. namespace units {
  27. /// dimension of information
  28. typedef information_base_dimension::dimension_type information_dimension;
  29. } // namespace units
  30. } // namespace boost
  31. #endif