Re: [Boost-bugs] [Boost C++ Libraries] #8546: GCC 4.8 warns unused local typedef

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8546: GCC 4.8 warns unused local typedef
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-09-02 11:52:48


#8546: GCC 4.8 warns unused local typedef
------------------------------------------+----------------------
  Reporter: Wei-Chiu Chuang <weichiu@…> | Owner: marshall
      Type: Bugs | Status: reopened
 Milestone: To Be Determined | Component: GIL
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
------------------------------------------+----------------------

Comment (by gereon.kremer@…):

 Okay, then I'll wait for 1.59 and see if it vanishes. As of 1.58 (with
 clang 3.6.2 and -Wall) and the following input, I still get this "unused
 typedef" warning:

 {{{#!cpp
 #include <boost/concept_check.hpp>
 template<typename T, typename TT>
 void require_type(const TT& tt) {
     T t = tt;
     (void)(t);
 }
 template<typename T1>
 struct UnaryMinus {
     T1 t;
     BOOST_CONCEPT_USAGE(UnaryMinus) { require_type<T1>(-t); }
 };
 int main() {
     BOOST_CONCEPT_ASSERT((UnaryMinus<int>));
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8546#comment:11>
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:50:18 UTC