aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-dataloader/detail/BasicBufferHandler.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvic-dataloader/detail/BasicBufferHandler.hpp')
-rw-r--r--src/openvic-dataloader/detail/BasicBufferHandler.hpp2
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) {