[type_traits] Check if implicit conversion from one type to another is possible
29 Oct
2014
29 Oct
'14
11:34 a.m.
Which is the correct type trait to use to check if an element of type T can be assigned to an element of type U. Is it any of the following: boost::is_convertible<T, U> std::is_assignable<U, T> Now boost::is_convertible<double, int>::value is true while std::is_assignable<int, double>::value is false. What does this signify? -- Aaron Levy aaron.levy@yandex.com
3614
Age (days ago)
3614
Last active (days ago)
0 comments
1 participants
participants (1)
-
Aaron Levy