Opened 10 years ago

Closed 10 years ago

#7246 closed Patches (fixed)

is_convertible works incorrectly for function target types

Reported by: Michel Morin Owned by: John Maddock
Milestone: To Be Determined Component: type_traits
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

is_convertible works incorrectly for function target types. For example,

boost::is_convertible<int(), int()>

should return false_type, but it returns true_type (tested on gcc). Trivial patch attached.

Attachments (2)

fix_is_convertible_for_function_types.patch (1.1 KB ) - added by Michel Morin 10 years ago.
Fixing is_convertible for function target types
add_is_convertible_test_for_function_types.patch (1.4 KB ) - added by Michel Morin 10 years ago.
Adding tests for function types

Download all attachments as: .zip

Change History (3)

by Michel Morin, 10 years ago

Fixing is_convertible for function target types

by Michel Morin, 10 years ago

Adding tests for function types

comment:1 by Michel Morin, 10 years ago

Resolution: fixed
Status: newclosed

(In [80080]) Fixing is_convertible for function types; fixes #7246

Note: See TracTickets for help on using tickets.