diff DEPENDENCIES/generic/include/boost/implicit_cast.hpp @ 101:c530137014c0

Update Boost headers (1.58.0)
author Chris Cannam
date Mon, 07 Sep 2015 11:12:49 +0100
parents 2665513ce2d3
children
line wrap: on
line diff
--- a/DEPENDENCIES/generic/include/boost/implicit_cast.hpp	Fri Sep 04 12:01:02 2015 +0100
+++ b/DEPENDENCIES/generic/include/boost/implicit_cast.hpp	Mon Sep 07 11:12:49 2015 +0100
@@ -5,9 +5,16 @@
 #ifndef IMPLICIT_CAST_DWA200356_HPP
 # define IMPLICIT_CAST_DWA200356_HPP
 
-# include <boost/mpl/identity.hpp>
+namespace boost {
 
-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
@@ -15,7 +22,7 @@
 // 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;
 }