Opened 21 years ago
Closed 21 years ago
#938 closed Bugs (Fixed)
Tons of lint in transform_traits.hpp
Reported by: | nobody | Owned by: | John Maddock |
---|---|---|---|
Milestone: | Component: | call_traits | |
Version: | None | Severity: | |
Keywords: | Cc: |
Description
In <boost/type_traits/transform_traits.hpp>, there is this code: template <bool> struct reference_adder { template <class T> struct rebind { typedef T& type; }; }; The problem is the lack of a declarator after the type "bool" in the template parameter list. I checked the grammer in Stroustrup, and found that that's not actually legal. There's always supposed to be a declarator. This is a problem for me, because it confuses PC-Lint, and causes a bazillion error messages when I include boost/functional.hpp. A simple change to "template <bool B>" fixes the problem. - Ron
Note:
See TracTickets
for help on using tickets.