🔨 cleanup
This commit is contained in:
parent
aa89c5e048
commit
1e08654f99
4 changed files with 5 additions and 10 deletions
|
@ -277,6 +277,7 @@ script:
|
|||
if [[ (-x $(which brew)) ]]; then
|
||||
brew update
|
||||
brew install cmake ninja
|
||||
brew upgrade cmake
|
||||
cmake --version
|
||||
fi
|
||||
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
#pragma once
|
||||
|
||||
#include <algorithm> // min
|
||||
#include <array> // array
|
||||
#include <cassert> // assert
|
||||
#include <cstddef> // size_t
|
||||
#include <cstring> // strlen
|
||||
#include <ios> // streamsize, streamoff, streampos
|
||||
#include <istream> // istream
|
||||
#include <iterator> // begin, end, iterator_traits, random_access_iterator_tag, distance, next
|
||||
#include <memory> // shared_ptr, make_shared, addressof
|
||||
|
@ -31,7 +28,7 @@ enum class input_format_t { json, cbor, msgpack, ubjson };
|
|||
@brief abstract input adapter interface
|
||||
|
||||
Produces a stream of std::char_traits<char>::int_type characters from a
|
||||
std::istream, a buffer, or some other input type. Accepts the return of
|
||||
std::istream, a buffer, or some other input type. Accepts the return of
|
||||
exactly one non-EOF character for future input. The int_type characters
|
||||
returned consist of all valid char values as positive values (typically
|
||||
unsigned char), plus an EOF value outside that range, specified by the value
|
||||
|
@ -115,7 +112,7 @@ class input_buffer_adapter : public input_adapter_protocol
|
|||
/// pointer to the current character
|
||||
const char* cursor;
|
||||
/// pointer past the last character
|
||||
const char* limit;
|
||||
const char* const limit;
|
||||
};
|
||||
|
||||
class input_adapter
|
||||
|
|
|
@ -660,4 +660,3 @@ class json_sax_acceptor : public json_sax<BasicJsonType>
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1572,12 +1572,10 @@ constexpr const auto& to_json = detail::static_const<detail::to_json_fn>::value;
|
|||
// #include <nlohmann/detail/input/input_adapters.hpp>
|
||||
|
||||
|
||||
#include <algorithm> // min
|
||||
#include <array> // array
|
||||
#include <cassert> // assert
|
||||
#include <cstddef> // size_t
|
||||
#include <cstring> // strlen
|
||||
#include <ios> // streamsize, streamoff, streampos
|
||||
#include <istream> // istream
|
||||
#include <iterator> // begin, end, iterator_traits, random_access_iterator_tag, distance, next
|
||||
#include <memory> // shared_ptr, make_shared, addressof
|
||||
|
@ -1686,9 +1684,9 @@ class input_buffer_adapter : public input_adapter_protocol
|
|||
|
||||
private:
|
||||
/// pointer to the current character
|
||||
const char* cursor;
|
||||
const char* const cursor;
|
||||
/// pointer past the last character
|
||||
const char* limit;
|
||||
const char* const limit;
|
||||
};
|
||||
|
||||
class input_adapter
|
||||
|
|
Loading…
Reference in a new issue