[Boost-bugs] [Boost C++ Libraries] #10934: is_function return false for cv-qualified function types

Subject: [Boost-bugs] [Boost C++ Libraries] #10934: is_function return false for cv-qualified function types
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-01-15 19:09:53


#10934: is_function return false for cv-qualified function types
------------------------------+-------------------------
 Reporter: pdimov | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: type_traits
  Version: Boost 1.57.0 | Severity: Problem
 Keywords: |
------------------------------+-------------------------
 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();
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10934>
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:17 UTC