Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:53:12

0001 // Boost.Units - A C++ library for zero-overhead dimensional analysis and 
0002 // unit/quantity manipulation and conversion
0003 //
0004 // Copyright (C) 2003-2008 Matthias Christian Schabel
0005 // Copyright (C) 2007-2008 Steven Watanabe
0006 //
0007 // Distributed under the Boost Software License, Version 1.0. (See
0008 // accompanying file LICENSE_1_0.txt or copy at
0009 // http://www.boost.org/LICENSE_1_0.txt)
0010 
0011 #ifndef BOOST_UNITS_BASE_UNITS_IMPERIAL_GALLON_HPP_INCLUDED
0012 #define BOOST_UNITS_BASE_UNITS_IMPERIAL_GALLON_HPP_INCLUDED
0013 
0014 #include <boost/units/scaled_base_unit.hpp>
0015 #include <boost/units/static_rational.hpp>
0016 #include <boost/units/scale.hpp>
0017 #include <boost/units/base_units/imperial/pint.hpp>
0018 
0019 namespace boost {
0020 
0021 namespace units {
0022 
0023 namespace imperial {
0024 
0025 //typedef scaled_base_unit<pint_base_unit, scale<2, static_rational<3> > > gallon_base_unit;
0026 typedef scaled_base_unit<pint_base_unit, scale<8, static_rational<1> > > gallon_base_unit;
0027 
0028 } // namespace imperial
0029 
0030 template<>
0031 struct base_unit_info<imperial::gallon_base_unit> {
0032     static BOOST_CONSTEXPR const char* name()   { return("gallon (imp.)"); }
0033     static BOOST_CONSTEXPR const char* symbol() { return("gal"); }
0034 };
0035 
0036 } // namespace units
0037 
0038 } // namespace boost
0039 
0040 #endif // BOOST_UNITS_BASE_UNITS_IMPERIAL_GALLON_HPP_INCLUDED