20 #ifndef IMG_PHYSICS_UNITS_HH
21 #define IMG_PHYSICS_UNITS_HH
23 #include <boost/mpl/vector_c.hpp>
24 #include<boost/mpl/placeholders.hpp>
25 #include <boost/mpl/plus.hpp>
26 #include <boost/mpl/transform.hpp>
29 namespace ost {
namespace img {
namespace physics{
33 namespace mpl = boost::mpl;
49 template <
class Dimensions>
69 template <
class D1,
class D2>
70 struct multiply_dimensions: mpl::transform<D1,D2,mpl::plus<mpl::placeholders::_1,mpl::placeholders::_2> >
73 template <
class D1,
class D2>
76 template <
class D1,
class D2>
77 struct divide_dimensions: mpl::transform<D1,D2,mpl::minus<mpl::placeholders::_1,mpl::placeholders::_2> >
80 template <
class D1,
class D2>