|
Boost-Commit : |
From: nesotto_at_[hidden]
Date: 2008-02-08 04:58:37
Author: nesotto
Date: 2008-02-08 04:58:35 EST (Fri, 08 Feb 2008)
New Revision: 43171
URL: http://svn.boost.org/trac/boost/changeset/43171
Log:
silence of warnings for unused arguments
Text files modified:
trunk/boost/range/detail/implementation_help.hpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
Modified: trunk/boost/range/detail/implementation_help.hpp
==============================================================================
--- trunk/boost/range/detail/implementation_help.hpp (original)
+++ trunk/boost/range/detail/implementation_help.hpp 2008-02-08 04:58:35 EST (Fri, 08 Feb 2008)
@@ -25,6 +25,8 @@
{
namespace range_detail
{
+ template <typename T>
+ inline void boost_range_silence_warning( const T& ) { }
/////////////////////////////////////////////////////////////////////
// end() help
@@ -82,12 +84,14 @@
template< class T, std::size_t sz >
inline std::size_t array_size( T BOOST_RANGE_ARRAY_REF()[sz] )
{
+ boost_range_silence_warning( boost_range_array );
return sz;
}
template< class T, std::size_t sz >
inline std::size_t array_size( const T BOOST_RANGE_ARRAY_REF()[sz] )
{
+ boost_range_silence_warning( boost_range_array );
return sz;
}
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