Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50467 - in trunk/boost/test: detail utils utils/runtime utils/runtime/cla utils/runtime/cla/iface
From: gennadiy.rozental_at_[hidden]
Date: 2009-01-04 14:44:37


Author: rogeeff
Date: 2009-01-04 14:44:36 EST (Sun, 04 Jan 2009)
New Revision: 50467
URL: http://svn.boost.org/trac/boost/changeset/50467

Log:
4267 and 4511
workaround for msvc 7.1 issue in named_params.hpp
warnings in runtime params subsystem worked around
Text files modified:
   trunk/boost/test/detail/enable_warnings.hpp | 2 ++
   trunk/boost/test/detail/suppress_warnings.hpp | 2 ++
   trunk/boost/test/detail/workaround.hpp | 3 +++
   trunk/boost/test/utils/named_params.hpp | 4 ++++
   trunk/boost/test/utils/runtime/argument.hpp | 2 +-
   trunk/boost/test/utils/runtime/cla/id_policy.hpp | 2 +-
   trunk/boost/test/utils/runtime/cla/iface/id_policy.hpp | 2 +-
   7 files changed, 14 insertions(+), 3 deletions(-)

Modified: trunk/boost/test/detail/enable_warnings.hpp
==============================================================================
--- trunk/boost/test/detail/enable_warnings.hpp (original)
+++ trunk/boost/test/detail/enable_warnings.hpp 2009-01-04 14:44:36 EST (Sun, 04 Jan 2009)
@@ -24,5 +24,7 @@
 # pragma warning(default: 4290) // C++ exception specification ignored except to ...
 # pragma warning(default: 4180) // qualifier applied to function type has no meaning; ignored
 # pragma warning(default: 4275) // non dll-interface class ... used as base for dll-interface class ...
+# pragma warning(default: 4267) // 'var' : conversion from 'size_t' to 'type', possible loss of data
+# pragma warning(default: 4511) // 'class' : copy constructor could not be generated
 # pragma warning(pop)
 #endif

Modified: trunk/boost/test/detail/suppress_warnings.hpp
==============================================================================
--- trunk/boost/test/detail/suppress_warnings.hpp (original)
+++ trunk/boost/test/detail/suppress_warnings.hpp 2009-01-04 14:44:36 EST (Sun, 04 Jan 2009)
@@ -25,5 +25,7 @@
 # pragma warning(disable: 4290) // C++ exception specification ignored except to ...
 # pragma warning(disable: 4180) // qualifier applied to function type has no meaning; ignored
 # pragma warning(disable: 4275) // non dll-interface class ... used as base for dll-interface class ...
+# pragma warning(disable: 4267) // 'var' : conversion from 'size_t' to 'type', possible loss of data
+# pragma warning(disable: 4511) // 'class' : copy constructor could not be generated
 #endif
 

Modified: trunk/boost/test/detail/workaround.hpp
==============================================================================
--- trunk/boost/test/detail/workaround.hpp (original)
+++ trunk/boost/test/detail/workaround.hpp 2009-01-04 14:44:36 EST (Sun, 04 Jan 2009)
@@ -41,6 +41,9 @@
 
     return res;
 }
+
+//____________________________________________________________________________//
+
 #else
 using std::distance;
 #endif

Modified: trunk/boost/test/utils/named_params.hpp
==============================================================================
--- trunk/boost/test/utils/named_params.hpp (original)
+++ trunk/boost/test/utils/named_params.hpp 2009-01-04 14:44:36 EST (Sun, 04 Jan 2009)
@@ -66,7 +66,11 @@
 
 struct nil {
     template<typename T>
+#if defined(__GNUC__)
     operator T() const
+#else
+ operator T const&() const
+#endif
     { report_access_to_invalid_parameter(); static T* v = 0; return *v; }
 
     template<typename T>

Modified: trunk/boost/test/utils/runtime/argument.hpp
==============================================================================
--- trunk/boost/test/utils/runtime/argument.hpp (original)
+++ trunk/boost/test/utils/runtime/argument.hpp 2009-01-04 14:44:36 EST (Sun, 04 Jan 2009)
@@ -38,7 +38,7 @@
 class argument {
 public:
     // Constructor
- argument( parameter const& p, rtti::id_t value_type )
+ argument( parameter const& p, call_traits<rtti::id_t>::param_type value_type )
     : p_formal_parameter( p )
     , p_value_type( value_type )
     {}

Modified: trunk/boost/test/utils/runtime/cla/id_policy.hpp
==============================================================================
--- trunk/boost/test/utils/runtime/cla/id_policy.hpp (original)
+++ trunk/boost/test/utils/runtime/cla/id_policy.hpp 2009-01-04 14:44:36 EST (Sun, 04 Jan 2009)
@@ -62,7 +62,7 @@
     }
 
 protected:
- explicit basic_naming_policy( rtti::id_t const& dyn_type )
+ explicit basic_naming_policy( call_traits<rtti::id_t>::param_type dyn_type )
     : identification_policy( dyn_type )
     {}
     BOOST_RT_PARAM_UNNEEDED_VIRTUAL ~basic_naming_policy() {}

Modified: trunk/boost/test/utils/runtime/cla/iface/id_policy.hpp
==============================================================================
--- trunk/boost/test/utils/runtime/cla/iface/id_policy.hpp (original)
+++ trunk/boost/test/utils/runtime/cla/iface/id_policy.hpp 2009-01-04 14:44:36 EST (Sun, 04 Jan 2009)
@@ -49,7 +49,7 @@
 
 protected:
     // Constructor
- explicit identification_policy( rtti::id_t const& dyn_type )
+ explicit identification_policy( call_traits<rtti::id_t>::param_type dyn_type )
     : p_type_id( dyn_type )
     {}
     BOOST_TEST_PROTECTED_VIRTUAL ~identification_policy() {}


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