Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/units/base_units/information/bit.hpp @ 133:4acb5d8d80b6 tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author | Chris Cannam |
---|---|
date | Tue, 30 Jul 2019 12:25:44 +0100 |
parents | f46d142149f5 |
children |
rev | line source |
---|---|
Chris@102 | 1 // Boost.Units - A C++ library for zero-overhead dimensional analysis and |
Chris@102 | 2 // unit/quantity manipulation and conversion |
Chris@102 | 3 // |
Chris@102 | 4 // Copyright (C) 2014 Erik Erlandson |
Chris@102 | 5 // |
Chris@102 | 6 // Distributed under the Boost Software License, Version 1.0. (See |
Chris@102 | 7 // accompanying file LICENSE_1_0.txt or copy at |
Chris@102 | 8 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@102 | 9 |
Chris@102 | 10 #ifndef BOOST_UNITS_BASE_UNITS_INFORMATION_BIT_HPP_INCLUDED |
Chris@102 | 11 #define BOOST_UNITS_BASE_UNITS_INFORMATION_BIT_HPP_INCLUDED |
Chris@102 | 12 |
Chris@102 | 13 #include <string> |
Chris@102 | 14 |
Chris@102 | 15 #include <boost/units/config.hpp> |
Chris@102 | 16 #include <boost/units/base_unit.hpp> |
Chris@102 | 17 #include <boost/units/physical_dimensions/information.hpp> |
Chris@102 | 18 |
Chris@102 | 19 namespace boost { |
Chris@102 | 20 namespace units { |
Chris@102 | 21 namespace information { |
Chris@102 | 22 |
Chris@102 | 23 struct bit_base_unit : public base_unit<bit_base_unit, information_dimension, -700> |
Chris@102 | 24 { |
Chris@102 | 25 static std::string name() { return("bit"); } |
Chris@102 | 26 static std::string symbol() { return("b"); } |
Chris@102 | 27 }; |
Chris@102 | 28 |
Chris@102 | 29 } // namespace information |
Chris@102 | 30 } // namespace units |
Chris@102 | 31 } // namespace boost |
Chris@102 | 32 |
Chris@102 | 33 #if BOOST_UNITS_HAS_BOOST_TYPEOF |
Chris@102 | 34 |
Chris@102 | 35 #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP() |
Chris@102 | 36 |
Chris@102 | 37 BOOST_TYPEOF_REGISTER_TYPE(boost::units::information::bit_base_unit) |
Chris@102 | 38 |
Chris@102 | 39 #endif |
Chris@102 | 40 |
Chris@102 | 41 #endif // BOOST_UNITS_BASE_UNITS_INFORMATION_BIT_HPP_INCLUDED |