Edit: /usr/include/boost/units/make_scaled_unit.hpp (1817B)
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
// unit/quantity manipulation and conversion
//
// Copyright (C) 2003-2008 Matthias Christian Schabel
// Copyright (C) 2007-2008 Steven Watanabe
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_UNITS_MAKE_SCALED_UNIT_HPP_INCLUDED
#define BOOST_UNITS_MAKE_SCALED_UNIT_HPP_INCLUDED
#include
#include
#include
namespace boost {
namespace units {
template
struct make_scaled_unit {
typedef typename make_scaled_unit::type, Scale>::type type;
};
template
struct make_scaled_unit > >, Scale> {
typedef unit<
Dimension,
heterogeneous_system<
heterogeneous_system_impl<
UnitList,
Dimension,
typename mpl::times<
OldScale,
list, dimensionless_type>
>::type
>
>
> type;
};
template
struct make_scaled_unit > >, scale > > {
typedef unit<
Dimension,
heterogeneous_system<
heterogeneous_system_impl<
UnitList,
Dimension,
OldScale
>
>
> type;
};
}
}
#endif