Skip to content

Commit ca531c1

Browse files
committed
fix: specialize std::is_floating_point (not using Boost.TypeTraits anymore)
1 parent 83e979e commit ca531c1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/boost/gil/extension/io/tiff/detail/is_allowed.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ struct Format_Type
9898
<
9999
typename is_bit_aligned<typename get_pixel_type<View>::type>::type
100100
>,
101-
is_floating_point<Channel>
101+
std::is_floating_point<Channel>
102102
>::value
103103
>::type
104104
>
@@ -125,7 +125,7 @@ struct Format_Type
125125
// return SAMPLEFORMAT_INT;
126126
// }
127127
//
128-
// else if( is_floating_point< Channel >::value )
128+
// else if( std::is_floating_point< Channel >::value )
129129
// {
130130
// return SAMPLEFORMAT_IEEEFP;
131131
// }

include/boost/gil/io/typedefs.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ using byte_vector_t = std::vector<byte_t>;
2929

3030
}} // namespace boost::gil
3131

32-
namespace boost {
32+
namespace std {
3333

34-
template<> struct is_floating_point<gil::float32_t> : std::true_type {};
35-
template<> struct is_floating_point<gil::float64_t> : std::true_type {};
34+
template<> struct is_floating_point<boost::gil::float32_t> : std::true_type {};
35+
template<> struct is_floating_point<boost::gil::float64_t> : std::true_type {};
3636

37-
} // namespace boost
37+
} // namespace std
3838

3939
namespace boost { namespace gil {
4040

0 commit comments

Comments
 (0)