diff DEPENDENCIES/generic/include/boost/random/detail/ptr_helper.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/random/detail/ptr_helper.hpp	Fri Sep 04 12:01:02 2015 +0100
+++ b/DEPENDENCIES/generic/include/boost/random/detail/ptr_helper.hpp	Mon Sep 07 11:12:49 2015 +0100
@@ -7,7 +7,7 @@
  *
  * See http://www.boost.org for most recent version including documentation.
  *
- * $Id: ptr_helper.hpp 24096 2004-07-27 03:43:34Z dgregor $
+ * $Id$
  *
  */
 
@@ -32,7 +32,6 @@
   static const T& ref(const T& r) { return r; }
 };
 
-#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
 template<class T>
 struct ptr_helper<T&>
 {
@@ -52,7 +51,6 @@
   static reference_type ref(T * p) { return *p; }
   static const T& ref(const T * p) { return *p; }
 };
-#endif
 
 } // namespace detail
 } // namespace random
@@ -64,31 +62,6 @@
 //  Helper macro for broken compilers defines specializations of
 //  ptr_helper.
 //
-#ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
-# define BOOST_RANDOM_PTR_HELPER_SPEC(T)                \
-namespace boost { namespace random { namespace detail { \
-template<>                                              \
-struct ptr_helper<T&>                                   \
-{                                                       \
-  typedef T value_type;                                 \
-  typedef T& reference_type;                            \
-  typedef T& rvalue_type;                               \
-  static reference_type ref(T& r) { return r; }         \
-  static const T& ref(const T& r) { return r; }         \
-};                                                      \
-                                                        \
-template<>                                              \
-struct ptr_helper<T*>                                   \
-{                                                       \
-  typedef T value_type;                                 \
-  typedef T& reference_type;                            \
-  typedef T* rvalue_type;                               \
-  static reference_type ref(T * p) { return *p; }       \
-  static const T& ref(const T * p) { return *p; }       \
-};                                                      \
-}}}
-#else
 # define BOOST_RANDOM_PTR_HELPER_SPEC(T)
-#endif 
 
 #endif // BOOST_RANDOM_DETAIL_PTR_HELPER_HPP