Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-02-27 17:44:14


Intel C++ uncovered the following with a warning:

------------------------
    typedef int& r_type;
    typedef const r_type cr_type;
------------------------
type_traits_test.hpp(278): warning #21: type qualifiers are meaningless in
this declaration
  typedef const r_type cr_type;
          ^
------------------------

I wonder if we've been testing the right things?

I changed it to:

    typedef int const& cr_type;

Everything seems to continue to pass.
On the other hand, the pragmas used to disable warnings with MSVC suggest
that this was intentional. Was it? A comment would be a big help, here.

-Dave

+---------------------------------------------------------------+
                  David Abrahams
      C++ Booster (http://www.boost.org) O__ ==
      Pythonista (http://www.python.org) c/ /'_ ==
  resume: http://users.rcn.com/abrahams/resume.html (*) \(*) ==
          email: david.abrahams_at_[hidden]
+---------------------------------------------------------------+


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk