
12 Aug
2012
12 Aug
'12
4:55 a.m.
Michel Morin wrote:
One note: The above code cannot deal with `boost::is_convertible<Func, Func&>`, where `Func` is a function type in a C++03 mode. This results in a compiler error. (In a C++11 mode, it returns true_type.) `boost::is_convertible<void, void>` results in a compiler error in both C++03 and C++11 modes.
Oops, `boost::is_convertible<void, void>` (with the proposed fix) works fine in both C++03 and C++11 modes. Regards, Michel