|
Boost-Commit : |
From: steven_at_[hidden]
Date: 2008-07-03 22:07:23
Author: steven_watanabe
Date: 2008-07-03 22:07:22 EDT (Thu, 03 Jul 2008)
New Revision: 47064
URL: http://svn.boost.org/trac/boost/changeset/47064
Log:
Add default constructors to one and no to prevent warnings
Text files modified:
trunk/boost/units/detail/one.hpp | 2 +-
trunk/boost/units/detail/prevent_redefinition.hpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/units/detail/one.hpp
==============================================================================
--- trunk/boost/units/detail/one.hpp (original)
+++ trunk/boost/units/detail/one.hpp 2008-07-03 22:07:22 EDT (Thu, 03 Jul 2008)
@@ -17,7 +17,7 @@
namespace units {
-struct one { };
+struct one { one() {} };
template<class T>
struct multiply_typeof_helper<one, T>
Modified: trunk/boost/units/detail/prevent_redefinition.hpp
==============================================================================
--- trunk/boost/units/detail/prevent_redefinition.hpp (original)
+++ trunk/boost/units/detail/prevent_redefinition.hpp 2008-07-03 22:07:22 EDT (Thu, 03 Jul 2008)
@@ -19,7 +19,7 @@
namespace detail {
-typedef char no;
+struct no { no() {} char dummy; };
struct yes { no dummy[2]; };
template<bool> struct ordinal_has_already_been_defined;
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