Reputation: 14071
I cannot seem to see the difference between boost::is_same
and boost::mpl::same_as
. Could someone perhaps point these out and where only the specific variant can be used.
Upvotes: 0
Views: 726
Reputation: 26050
Effectively, nothing. If you actually look at the source of mpl::same_as
, it includes is_same
and then uses it directly.
Note that <type_traits>
is part of the standard library as of C++11, and includes std::is_same
(which acts exactly like the aforementioned two functions in boost).
Upvotes: 3