|
Boost-Commit : |
From: steven_at_[hidden]
Date: 2007-10-18 16:36:41
Author: steven_watanabe
Date: 2007-10-18 16:36:41 EDT (Thu, 18 Oct 2007)
New Revision: 40164
URL: http://svn.boost.org/trac/boost/changeset/40164
Log:
Added static assert to catch non-dimension lists
Text files modified:
sandbox/units/boost/units/unit.hpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
Modified: sandbox/units/boost/units/unit.hpp
==============================================================================
--- sandbox/units/boost/units/unit.hpp (original)
+++ sandbox/units/boost/units/unit.hpp 2007-10-18 16:36:41 EDT (Thu, 18 Oct 2007)
@@ -21,6 +21,7 @@
#include <boost/units/units_fwd.hpp>
#include <boost/units/homogeneous_system.hpp>
#include <boost/units/heterogeneous_system.hpp>
+#include <boost/units/is_dimension_list.hpp>
#include <boost/units/implicit_conversion.hpp>
#include <boost/units/static_rational.hpp>
@@ -47,6 +48,7 @@
private:
BOOST_STATIC_ASSERT((detail::check_system<System, Dim>::value == true));
+ BOOST_STATIC_ASSERT((is_dimension_list<Dim>::value == true));
};
}
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