From 251f172a3823898feaa7669652f6d34e6cb48932 Mon Sep 17 00:00:00 2001 From: swewagner Date: Thu, 27 Feb 2025 14:08:32 +0100 Subject: [PATCH] [fix] clear() on type that models tuple-like --- include/bio/io/detail/tuple_record.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/bio/io/detail/tuple_record.hpp b/include/bio/io/detail/tuple_record.hpp index c227681..88ad458 100644 --- a/include/bio/io/detail/tuple_record.hpp +++ b/include/bio/io/detail/tuple_record.hpp @@ -166,9 +166,9 @@ struct tuple_record : bio::meta::transfer_template_args_onto_t()))) + void clear() noexcept(noexcept(std::apply(expander, std::declval().to_base()))) { - std::apply(expander, *this); + std::apply(expander, to_base()); } /*!\name Get accessors