1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #ifndef BOOST_UNITS_IS_DIMENSIONLESS_HPP
- #define BOOST_UNITS_IS_DIMENSIONLESS_HPP
- #include <boost/mpl/bool.hpp>
- #include <boost/units/units_fwd.hpp>
- namespace boost {
- namespace units {
- template<class T>
- struct is_dimensionless :
- public mpl::false_
- { };
- template<class System>
- struct is_dimensionless< unit<dimensionless_type,System> > :
- public mpl::true_
- { };
- template<class Unit,class Y>
- struct is_dimensionless< quantity<Unit,Y> > :
- public is_dimensionless<Unit>
- { };
- }
- }
- #endif
|