Suppress warnings on gcc 9
This commit is contained in:
parent
f468b203ad
commit
d2d1ef61cf
@ -801,8 +801,8 @@ template <typename T> class iterator_buffer<T*, T> final : public buffer<T> {
|
|||||||
template <typename Container>
|
template <typename Container>
|
||||||
class iterator_buffer<std::back_insert_iterator<Container>,
|
class iterator_buffer<std::back_insert_iterator<Container>,
|
||||||
enable_if_t<is_contiguous<Container>::value,
|
enable_if_t<is_contiguous<Container>::value,
|
||||||
typename Container::value_type>> final
|
typename Container::value_type>>
|
||||||
: public buffer<typename Container::value_type> {
|
final : public buffer<typename Container::value_type> {
|
||||||
private:
|
private:
|
||||||
Container& container_;
|
Container& container_;
|
||||||
|
|
||||||
@ -1371,6 +1371,10 @@ struct iterator_category<It, void_t<typename It::iterator_category>> {
|
|||||||
using type = typename It::iterator_category;
|
using type = typename It::iterator_category;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
# pragma GCC diagnostic push
|
||||||
|
# pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
|
||||||
|
#endif
|
||||||
// Detect if *any* given type models the OutputIterator concept.
|
// Detect if *any* given type models the OutputIterator concept.
|
||||||
template <typename It> class is_output_iterator {
|
template <typename It> class is_output_iterator {
|
||||||
// Check for mutability because all iterator categories derived from
|
// Check for mutability because all iterator categories derived from
|
||||||
@ -1388,6 +1392,9 @@ template <typename It> class is_output_iterator {
|
|||||||
public:
|
public:
|
||||||
enum { value = !std::is_const<remove_reference_t<type>>::value };
|
enum { value = !std::is_const<remove_reference_t<type>>::value };
|
||||||
};
|
};
|
||||||
|
#ifdef __GNUC__
|
||||||
|
# pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
template <typename OutputIt>
|
template <typename OutputIt>
|
||||||
struct is_back_insert_iterator : std::false_type {};
|
struct is_back_insert_iterator : std::false_type {};
|
||||||
|
|||||||
@ -1946,7 +1946,14 @@ template <typename Char, typename OutputIt, typename T,
|
|||||||
OutputIt write(OutputIt out, T value) {
|
OutputIt write(OutputIt out, T value) {
|
||||||
if (const_check(!is_supported_floating_point(value))) return out;
|
if (const_check(!is_supported_floating_point(value))) return out;
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
# pragma GCC diagnostic push
|
||||||
|
# pragma GCC diagnostic ignored "-Wshadow"
|
||||||
|
#endif
|
||||||
using type = conditional_t<std::is_same<T, long double>::value, double, T>;
|
using type = conditional_t<std::is_same<T, long double>::value, double, T>;
|
||||||
|
#ifdef __GNUC__
|
||||||
|
# pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
using uint = typename dragonbox::float_info<type>::carrier_uint;
|
using uint = typename dragonbox::float_info<type>::carrier_uint;
|
||||||
auto bits = bit_cast<uint>(value);
|
auto bits = bit_cast<uint>(value);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user