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_BASE_UNITS_INFORMATION_BIT_HPP_INCLUDED Chris@102: #define BOOST_UNITS_BASE_UNITS_INFORMATION_BIT_HPP_INCLUDED Chris@102: Chris@102: #include Chris@102: Chris@102: #include Chris@102: #include Chris@102: #include Chris@102: Chris@102: namespace boost { Chris@102: namespace units { Chris@102: namespace information { Chris@102: Chris@102: struct bit_base_unit : public base_unit Chris@102: { Chris@102: static std::string name() { return("bit"); } Chris@102: static std::string symbol() { return("b"); } Chris@102: }; Chris@102: Chris@102: } // namespace information Chris@102: } // namespace units Chris@102: } // namespace boost Chris@102: Chris@102: #if BOOST_UNITS_HAS_BOOST_TYPEOF Chris@102: Chris@102: #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP() Chris@102: Chris@102: BOOST_TYPEOF_REGISTER_TYPE(boost::units::information::bit_base_unit) Chris@102: Chris@102: #endif Chris@102: Chris@102: #endif // BOOST_UNITS_BASE_UNITS_INFORMATION_BIT_HPP_INCLUDED