123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #ifndef BOOST_UNITS_GET_SYSTEM_HPP
- #define BOOST_UNITS_GET_SYSTEM_HPP
- #include <boost/units/units_fwd.hpp>
- namespace boost {
- namespace units {
- template<class T>
- struct get_system {};
- template<class Dim,class System>
- struct get_system< unit<Dim,System> >
- {
- typedef System type;
- };
- template<class Unit>
- struct get_system< absolute<Unit> >
- {
- typedef typename get_system<Unit>::type type;
- };
- template<class Unit,class Y>
- struct get_system< quantity<Unit,Y> >
- {
- typedef typename get_system<Unit>::type type;
- };
- }
- }
- #endif
|