|
Boost-Commit : |
From: matthiasschabel_at_[hidden]
Date: 2007-05-31 12:45:05
Author: matthiasschabel
Date: 2007-05-31 12:45:04 EDT (Thu, 31 May 2007)
New Revision: 4380
URL: http://svn.boost.org/trac/boost/changeset/4380
Log:
add divides_impl
Text files modified:
sandbox/units/boost/units/heterogeneous_system.hpp | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
Modified: sandbox/units/boost/units/heterogeneous_system.hpp
==============================================================================
--- sandbox/units/boost/units/heterogeneous_system.hpp (original)
+++ sandbox/units/boost/units/heterogeneous_system.hpp 2007-05-31 12:45:04 EDT (Thu, 31 May 2007)
@@ -135,6 +135,18 @@
/// INTERNAL ONLY
template<>
+struct divides_impl<boost::units::heterogeneous_system_dim_tag, boost::units::detail::static_rational_tag> {
+ template<class T0, class T1>
+ struct apply {
+ typedef boost::units::heterogeneous_system_dim<
+ typename T0::tag_type,
+ typename mpl::divides<typename T0::value_type,T1>::type
+ > type;
+ };
+};
+
+/// INTERNAL ONLY
+template<>
struct negate_impl<boost::units::heterogeneous_system_dim_tag> {
template<class T>
struct apply {
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk