Chris@102: // Boost.Units - A C++ library for zero-overhead dimensional analysis and Chris@102: // unit/quantity manipulation and conversion Chris@102: // Chris@102: // Copyright (C) 2014 Erik Erlandson Chris@102: // Chris@102: // Distributed under the Boost Software License, Version 1.0. (See Chris@102: // accompanying file LICENSE_1_0.txt or copy at Chris@102: // http://www.boost.org/LICENSE_1_0.txt) Chris@102: Chris@102: #ifndef BOOST_UNITS_SYSTEMS_INFORMATION_BYTE_HPP_INCLUDED Chris@102: #define BOOST_UNITS_SYSTEMS_INFORMATION_BYTE_HPP_INCLUDED Chris@102: Chris@102: #include Chris@102: #include Chris@102: #include Chris@102: Chris@102: #include Chris@102: Chris@102: namespace boost { Chris@102: namespace units { Chris@102: namespace information { Chris@102: Chris@102: typedef make_system::type system; Chris@102: Chris@102: typedef unit dimensionless; Chris@102: Chris@102: namespace hu { Chris@102: namespace byte { Chris@102: typedef unit info; Chris@102: } // namespace bit Chris@102: } // namespace hu Chris@102: Chris@102: BOOST_UNITS_STATIC_CONSTANT(byte, hu::byte::info); Chris@102: BOOST_UNITS_STATIC_CONSTANT(bytes, hu::byte::info); Chris@102: Chris@102: // I'm going to define boost::units::information::info (the "default") Chris@102: // to be hu::byte::info -- other variants such as hu::bit::info, hu::nat::info, etc Chris@102: // must be explicitly referred to Chris@102: typedef hu::byte::info info; Chris@102: Chris@102: } // namespace information Chris@102: } // namespace units Chris@102: } // namespace boost Chris@102: Chris@102: #endif // BOOST_UNITS_SYSTEMS_INFORMATION_BYTE_HPP_INCLUDED