🚨 fixed more compiler warnings

This commit is contained in:
Niels Lohmann 2018-06-23 11:00:42 +02:00
parent 66dd1a846d
commit c02de445bf
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
3 changed files with 8 additions and 8 deletions

View File

@ -119,7 +119,7 @@ template<typename WideStringType>
class wide_string_input_adapter : public input_adapter_protocol
{
public:
wide_string_input_adapter(const WideStringType& w) : str(w) {}
explicit wide_string_input_adapter(const WideStringType& w) : str(w) {}
std::char_traits<char>::int_type get_character() noexcept override
{

View File

@ -41,11 +41,11 @@ class json_reverse_iterator : public std::reverse_iterator<Base>
using reference = typename Base::reference;
/// create reverse iterator from iterator
json_reverse_iterator(const typename base_iterator::iterator_type& it) noexcept
explicit json_reverse_iterator(const typename base_iterator::iterator_type& it) noexcept
: base_iterator(it) {}
/// create reverse iterator from base class
json_reverse_iterator(const base_iterator& it) noexcept : base_iterator(it) {}
explicit json_reverse_iterator(const base_iterator& it) noexcept : base_iterator(it) {}
/// post-increment (it++)
json_reverse_iterator const operator++(int)

View File

@ -1733,7 +1733,7 @@ template<typename WideStringType>
class wide_string_input_adapter : public input_adapter_protocol
{
public:
wide_string_input_adapter(const WideStringType& w) : str(w) {}
explicit wide_string_input_adapter(const WideStringType& w) : str(w) {}
std::char_traits<char>::int_type get_character() noexcept override
{
@ -4593,7 +4593,7 @@ class primitive_iterator_t
primitive_iterator_t const operator++(int) noexcept
{
auto result = *this;
m_it++;
++m_it;
return result;
}
@ -4606,7 +4606,7 @@ class primitive_iterator_t
primitive_iterator_t const operator--(int) noexcept
{
auto result = *this;
m_it--;
--m_it;
return result;
}
@ -5433,11 +5433,11 @@ class json_reverse_iterator : public std::reverse_iterator<Base>
using reference = typename Base::reference;
/// create reverse iterator from iterator
json_reverse_iterator(const typename base_iterator::iterator_type& it) noexcept
explicit json_reverse_iterator(const typename base_iterator::iterator_type& it) noexcept
: base_iterator(it) {}
/// create reverse iterator from base class
json_reverse_iterator(const base_iterator& it) noexcept : base_iterator(it) {}
explicit json_reverse_iterator(const base_iterator& it) noexcept : base_iterator(it) {}
/// post-increment (it++)
json_reverse_iterator const operator++(int)