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)
Change History (3)
by , 10 years ago
| Attachment: | fix_is_convertible_for_function_types.patch added |
|---|
by , 10 years ago
| Attachment: | add_is_convertible_test_for_function_types.patch added |
|---|
Adding tests for function types
comment:1 by , 10 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Fixing
is_convertiblefor function target types