Boost logo

Boost-Commit :

From: steven_at_[hidden]
Date: 2008-04-30 22:42:43


Author: steven_watanabe
Date: 2008-04-30 22:42:43 EDT (Wed, 30 Apr 2008)
New Revision: 44964
URL: http://svn.boost.org/trac/boost/changeset/44964

Log:
Reduced the length of the name of prevent_ordinal_redefinition.hpp to keep the inspect tool happy
Added:
   sandbox/units/boost/units/detail/prevent_redefinition.hpp
      - copied, changed from r44963, /sandbox/units/boost/units/detail/prevent_ordinal_redefinition_impl.hpp
Removed:
   sandbox/units/boost/units/detail/prevent_ordinal_redefinition_impl.hpp
Text files modified:
   sandbox/units/boost/units/base_dimension.hpp | 2 +-
   sandbox/units/boost/units/base_unit.hpp | 2 +-
   sandbox/units/boost/units/detail/prevent_redefinition.hpp | 7 ++++---
   3 files changed, 6 insertions(+), 5 deletions(-)

Modified: sandbox/units/boost/units/base_dimension.hpp
==============================================================================
--- sandbox/units/boost/units/base_dimension.hpp (original)
+++ sandbox/units/boost/units/base_dimension.hpp 2008-04-30 22:42:43 EDT (Wed, 30 Apr 2008)
@@ -17,7 +17,7 @@
 #include <boost/units/static_rational.hpp>
 #include <boost/units/units_fwd.hpp>
 
-#include <boost/units/detail/prevent_ordinal_redefinition_impl.hpp>
+#include <boost/units/detail/prevent_redefinition.hpp>
 
 namespace boost {
 

Modified: sandbox/units/boost/units/base_unit.hpp
==============================================================================
--- sandbox/units/boost/units/base_unit.hpp (original)
+++ sandbox/units/boost/units/base_unit.hpp 2008-04-30 22:42:43 EDT (Wed, 30 Apr 2008)
@@ -18,7 +18,7 @@
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/unit.hpp>
 
-#include <boost/units/detail/prevent_ordinal_redefinition_impl.hpp>
+#include <boost/units/detail/prevent_redefinition.hpp>
 
 namespace boost {
 

Deleted: sandbox/units/boost/units/detail/prevent_ordinal_redefinition_impl.hpp
==============================================================================
--- sandbox/units/boost/units/detail/prevent_ordinal_redefinition_impl.hpp 2008-04-30 22:42:43 EDT (Wed, 30 Apr 2008)
+++ (empty file)
@@ -1,53 +0,0 @@
-// mcs::units - A C++ library for zero-overhead dimensional analysis and
-// unit/quantity manipulation and conversion
-//
-// Copyright (C) 2003-2007 Matthias Christian Schabel
-// Copyright (C) 2007 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_PREVENT_ORDINAL_REDEFINITION_IMPL_HPP
-#define BOOST_UNITS_PREVENT_ORDINAL_REDEFINITION_IMPL_HPP
-
-#include <boost/mpl/long.hpp>
-
-namespace boost {
-
-namespace units {
-
-namespace detail {
-
-typedef char no;
-struct yes { no dummy[2]; };
-
-template<bool> struct ordinal_has_already_been_defined;
-
-template<>
-struct ordinal_has_already_been_defined<true> { };
-
-template<>
-struct ordinal_has_already_been_defined<false> { typedef void type; };
-
-}
-
-/// This must be in namespace boost::units so that ADL
-/// will work. we need a mangled name because it must
-/// be found by ADL
-/// INTERNAL ONLY
-template<class T>
-detail::no
-boost_units_is_registered(const T&)
-{ return(detail::no()); }
-
-template<class T>
-detail::no
-boost_units_unit_is_registered(const T&)
-{ return(detail::no()); }
-
-} // namespace units
-
-} // namespace boost
-
-#endif // BOOST_UNITS_PREVENT_ORDINAL_REDEFINITION_IMPL_HPP

Copied: sandbox/units/boost/units/detail/prevent_redefinition.hpp (from r44963, /sandbox/units/boost/units/detail/prevent_ordinal_redefinition_impl.hpp)
==============================================================================
--- /sandbox/units/boost/units/detail/prevent_ordinal_redefinition_impl.hpp (original)
+++ sandbox/units/boost/units/detail/prevent_redefinition.hpp 2008-04-30 22:42:43 EDT (Wed, 30 Apr 2008)
@@ -2,14 +2,14 @@
 // unit/quantity manipulation and conversion
 //
 // Copyright (C) 2003-2007 Matthias Christian Schabel
-// Copyright (C) 2007 Steven Watanabe
+// 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_PREVENT_ORDINAL_REDEFINITION_IMPL_HPP
-#define BOOST_UNITS_PREVENT_ORDINAL_REDEFINITION_IMPL_HPP
+#ifndef BOOST_UNITS_DETAIL_PREVENT_REDEFINITION_HPP
+#define BOOST_UNITS_DETAIL_PREVENT_REDEFINITION_HPP
 
 #include <boost/mpl/long.hpp>
 
@@ -41,6 +41,7 @@
 boost_units_is_registered(const T&)
 { return(detail::no()); }
 
+/// INTERNAL ONLY
 template<class T>
 detail::no
 boost_units_unit_is_registered(const T&)


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