diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/openvic-dataloader/detail/BasicBufferHandler.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvic-dataloader/detail/BasicBufferHandler.hpp b/src/openvic-dataloader/detail/BasicBufferHandler.hpp index 72b85d3..f26544b 100644 --- a/src/openvic-dataloader/detail/BasicBufferHandler.hpp +++ b/src/openvic-dataloader/detail/BasicBufferHandler.hpp @@ -18,7 +18,7 @@ namespace ovdl::detail { using encoding_type = Encoding; OVDL_OPTIONAL_CONSTEXPR bool is_valid() const { - return _buffer.size() != 0; + return _buffer.data() != nullptr; } OVDL_OPTIONAL_CONSTEXPR std::optional<ovdl::ParseError> load_buffer_size(const char* data, std::size_t size) { |