Re: [Boost-bugs] [Boost C++ Libraries] #813: concept_check.hpp unused variable warning

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #813: concept_check.hpp unused variable warning
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-11-08 17:44:43


#813: concept_check.hpp unused variable warning
-----------------------+----------------------------------------------------
  Reporter: slyilmaz | Owner: jsiek
      Type: Bugs | Status: closed
 Milestone: | Component: concept_check
   Version: None | Severity: Problem
Resolution: fixed | Keywords:
-----------------------+----------------------------------------------------
Changes (by johnmaddock):

  * status: assigned => closed
  * resolution: None => fixed

Old description:

> {{{
> In file boost/concept_check.hpp (line 154 in CVS version 1.42), in member
> void BOOST_concept(Assignable,(TT))::const_constraints(const TT& b)
> argument b is unused in some compilers.
> Can you please change it as
>
> #if !defined(_ITERATOR_)
> a = b;
> #else
> ignore_unused_variable_warning(b);
> #endif
>

> }}}

New description:

 {{{
 In file boost/concept_check.hpp (line 154 in CVS version 1.42), in member
 void BOOST_concept(Assignable,(TT))::const_constraints(const TT& b)
 argument b is unused in some compilers.
 Can you please change it as

 #if !defined(_ITERATOR_)
       a = b;
 #else
 ignore_unused_variable_warning(b);
 #endif


 }}}

Comment:

 This appears to have been fixed.

 John Maddock

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/813#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC