This commit is contained in:
Niels 2015-06-28 14:39:52 +02:00
parent 3f6b10733b
commit 862e7000f4
2 changed files with 4 additions and 4 deletions

View file

@ -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);

View file

@ -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);