Fixed Ninja build (#5408)

This commit is contained in:
Ilya Churaev 2021-04-27 06:36:45 +03:00 committed by GitHub
parent 16da65fc93
commit 2a51a62d48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -36,7 +36,10 @@ namespace ngraph
{
return i < m_size ? m_string[i] : throw std::out_of_range("");
}
constexpr const char* get_ptr(size_t offset) const { return &m_string[offset]; }
constexpr const char* get_ptr(size_t offset) const
{
return offset < m_size ? &m_string[offset] : nullptr;
}
constexpr size_t size() const { return m_size; }
private: