diff options
author | Chanho Park <chanho61.park@samsung.com> | 2014-12-11 18:55:56 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-12-11 18:55:56 +0900 |
commit | 08c1e93fa36a49f49325a07fe91ff92c964c2b6c (patch) | |
tree | 7a7053ceb8874b28ec4b868d4c49b500008a102e /boost/implicit_cast.hpp | |
parent | bb4dd8289b351fae6b55e303f189127a394a1edd (diff) | |
download | boost-08c1e93fa36a49f49325a07fe91ff92c964c2b6c.tar.gz boost-08c1e93fa36a49f49325a07fe91ff92c964c2b6c.tar.bz2 boost-08c1e93fa36a49f49325a07fe91ff92c964c2b6c.zip |
Imported Upstream version 1.57.0upstream/1.57.0
Diffstat (limited to 'boost/implicit_cast.hpp')
-rw-r--r-- | boost/implicit_cast.hpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/boost/implicit_cast.hpp b/boost/implicit_cast.hpp index 5b1cd92b9b..d82db7628e 100644 --- a/boost/implicit_cast.hpp +++ b/boost/implicit_cast.hpp @@ -5,17 +5,24 @@ #ifndef IMPLICIT_CAST_DWA200356_HPP # define IMPLICIT_CAST_DWA200356_HPP -# include <boost/mpl/identity.hpp> - namespace boost { +namespace detail { + +template<class T> struct icast_identity +{ + typedef T type; +}; + +} // namespace detail + // implementation originally suggested by C. Green in // http://lists.boost.org/MailArchives/boost/msg00886.php // The use of identity creates a non-deduced form, so that the // explicit template argument must be supplied template <typename T> -inline T implicit_cast (typename mpl::identity<T>::type x) { +inline T implicit_cast (typename boost::detail::icast_identity<T>::type x) { return x; } |