Opened 14 years ago
#2252 new Bugs
Doc or design problem
Reported by: | Dave Abrahams | Owned by: | t_schwinger |
---|---|---|---|
Milestone: | Boost 1.37.0 | Component: | function_types |
Version: | Boost 1.36.0 | Severity: | Problem |
Keywords: | Cc: |
Description
The library is designed to work well with other Boost libraries and uses well-accepted concepts introduced by Boost and TR1.
Templates that encapsulate boolean or numeric properties define a static member constant called value.
is_function_pointer< bool(*)(int) >::value // == true function_arity< bool(*)(int) >::value // == 1
The problem is that having a nested static member constant called value is neither necessary nor sufficient to work with MPL. The approach that makes it work the most smoothly would derive the template specialization from an MPL Integral Constant, but at least you need a nested ::type
member.
Note:
See TracTickets
for help on using tickets.