fixed #94
This commit is contained in:
parent
3f6b10733b
commit
862e7000f4
2 changed files with 4 additions and 4 deletions
|
@ -5085,14 +5085,14 @@ class basic_json
|
|||
using lexer_char_t = unsigned char;
|
||||
|
||||
/// constructor with a given buffer
|
||||
lexer(const string_t& s) noexcept
|
||||
explicit lexer(const string_t& s) noexcept
|
||||
: m_stream(nullptr), m_buffer(s)
|
||||
{
|
||||
m_content = reinterpret_cast<const lexer_char_t*>(s.c_str());
|
||||
m_start = m_cursor = m_content;
|
||||
m_limit = m_content + s.size();
|
||||
}
|
||||
lexer(std::istream* s) noexcept
|
||||
explicit lexer(std::istream* s) noexcept
|
||||
: m_stream(s), m_buffer()
|
||||
{
|
||||
getline(*m_stream, m_buffer);
|
||||
|
|
|
@ -5085,14 +5085,14 @@ class basic_json
|
|||
using lexer_char_t = unsigned char;
|
||||
|
||||
/// constructor with a given buffer
|
||||
lexer(const string_t& s) noexcept
|
||||
explicit lexer(const string_t& s) noexcept
|
||||
: m_stream(nullptr), m_buffer(s)
|
||||
{
|
||||
m_content = reinterpret_cast<const lexer_char_t*>(s.c_str());
|
||||
m_start = m_cursor = m_content;
|
||||
m_limit = m_content + s.size();
|
||||
}
|
||||
lexer(std::istream* s) noexcept
|
||||
explicit lexer(std::istream* s) noexcept
|
||||
: m_stream(s), m_buffer()
|
||||
{
|
||||
getline(*m_stream, m_buffer);
|
||||
|
|
Loading…
Reference in a new issue