@@ -132,7 +132,7 @@ namespace eos {
132132 * and store non-zero bytes to the stream.
133133 */
134134 template <typename T>
135- typename lslboost ::enable_if<lslboost ::is_integral<T> >::type
135+ typename std ::enable_if<std ::is_integral<T>::value >::type
136136 save (const T & t, dummy<2 > = 0 )
137137 {
138138 if (T temp = t)
@@ -148,7 +148,7 @@ namespace eos {
148148
149149 // encode the sign bit into the size
150150 save_signed_char (t > 0 ? size : -size);
151- BOOST_ASSERT (t > 0 || lslboost ::is_signed<T>::value);
151+ BOOST_ASSERT (t > 0 || std ::is_signed<T>::value);
152152
153153 // we choose to use little endian because this way we just
154154 // save the first size bytes to the stream and skip the rest
@@ -187,10 +187,10 @@ namespace eos {
187187 * small rounding off errors.
188188 */
189189 template <typename T>
190- typename lslboost ::enable_if<lslboost ::is_floating_point<T> >::type
190+ typename std ::enable_if<std ::is_floating_point<T>::value >::type
191191 save (const T & t, dummy<3 > = 0 )
192192 {
193- typedef typename fp::detail::fp_traits<T>::type traits ;
193+ using traits = typename fp::detail::fp_traits<T>::type;
194194
195195 // if the no_infnan flag is set we must throw here
196196 if (get_flags () & no_infnan && !fp::isfinite (t))
@@ -210,7 +210,7 @@ namespace eos {
210210 case FP_NAN: bits = traits::exponent | traits::significand; break ;
211211 case FP_INFINITE: bits = traits::exponent | (t<0 ) * traits::sign; break ;
212212 case FP_SUBNORMAL: assert (std::numeric_limits<T>::has_denorm); // pass
213- case FP_ZERO: // note that floats can be ±0.0
213+ case FP_ZERO: // note that floats can be ±0.0
214214 case FP_NORMAL: traits::get_bits (t, bits); break ;
215215 default : throw portable_archive_exception (t);
216216 }
@@ -221,7 +221,7 @@ namespace eos {
221221 // in lslboost 1.44 version_type was splitted into library_version_type and
222222 // item_version_type, plus a whole bunch of additional strong typedefs.
223223 template <typename T>
224- typename lslboost::disable_if<lslboost ::is_arithmetic<T> >::type
224+ typename std::enable_if<!std ::is_arithmetic<T>::value >::type
225225 save (const T& t, dummy<4 > = 0 )
226226 {
227227 // we provide a generic save routine for all types that feature
0 commit comments