Opened 8 years ago
Closed 4 years ago
#10934 closed Bugs (duplicate)
is_function return false for cv-qualified function types
| Reported by: | Peter Dimov | Owned by: | John Maddock |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | type_traits |
| Version: | Boost 1.57.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
As the following test shows:
#include <boost/type_traits/is_function.hpp>
#include <boost/core/lightweight_test_trait.hpp>
struct X
{
void f() {}
void fc() const {}
void fv() volatile {}
void fcv() const volatile {}
};
template< class C, class F > void test( F C::* )
{
BOOST_TEST_TRAIT_TRUE(( boost::is_function< F > ));
}
int main()
{
test( &X::f );
test( &X::fc );
test( &X::fv );
test( &X::fcv );
return boost::report_errors();
}
Note:
See TracTickets
for help on using tickets.

Confirmed and moved to https://github.com/boostorg/type_traits/issues/81