Skip to content

Commit 70d1bdf

Browse files
Pierre-Luc Gagnéclaude
andcommitted
fix: use explicit this-> in server_cursor lambda to silence clang-20
Clang-20 warns about unused lambda capture of 'this' in generic lambdas even when member functions are called. Using explicit this-> makes the dependency visible to the compiler. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 37aa68e commit 70d1bdf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/include/ds_mysql/server_cursor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class server_cursor {
126126

127127
std::expected<void, std::string> bind_results() {
128128
[this]<std::size_t... Is>(std::index_sequence<Is...>) {
129-
(setup_bind<std::tuple_element_t<Is, RowType>>(Is), ...);
129+
(this->setup_bind<std::tuple_element_t<Is, RowType>>(Is), ...);
130130
}(std::make_index_sequence<N>{});
131131

132132
if (mysql_stmt_bind_result(stmt_.get(), result_binds_.data())) {

0 commit comments

Comments
 (0)