@@ -513,7 +513,9 @@ using std::true_type;
513513template <typename T> struct is_float : std::is_floating_point<T> {};
514514#else
515515// / Conditional type.
516- template <bool , typename T, typename > struct conditional { typedef T type; };
516+ template <bool , typename T, typename > struct conditional {
517+ typedef T type;
518+ };
517519template <typename T, typename F> struct conditional <false , T, F> {
518520 typedef F type;
519521};
@@ -534,7 +536,9 @@ template <> struct is_float<long double> : true_type {};
534536#endif
535537
536538// / Type traits for floating-point bits.
537- template <typename T> struct bits { typedef unsigned char type; };
539+ template <typename T> struct bits {
540+ typedef unsigned char type;
541+ };
538542template <typename T> struct bits <const T> : bits<T> {};
539543template <typename T> struct bits <volatile T> : bits<T> {};
540544template <typename T> struct bits <const volatile T> : bits<T> {};
@@ -550,10 +554,14 @@ typedef std::uint_fast32_t uint32;
550554typedef std::int_fast32_t int32;
551555
552556// / Unsigned integer of (at least) 32 bits width.
553- template <> struct bits <float > { typedef std::uint_least32_t type; };
557+ template <> struct bits <float > {
558+ typedef std::uint_least32_t type;
559+ };
554560
555561// / Unsigned integer of (at least) 64 bits width.
556- template <> struct bits <double > { typedef std::uint_least64_t type; };
562+ template <> struct bits <double > {
563+ typedef std::uint_least64_t type;
564+ };
557565#else
558566// / Unsigned integer of (at least) 16 bits width.
559567typedef unsigned short uint16;
@@ -578,7 +586,9 @@ struct bits<double>
578586 unsigned long , unsigned long long > {};
579587#else
580588// / Unsigned integer of (at least) 64 bits width.
581- template <> struct bits <double > { typedef unsigned long type; };
589+ template <> struct bits <double > {
590+ typedef unsigned long type;
591+ };
582592#endif
583593#endif
584594
0 commit comments