commands.cc: In instantiation of ‘Kakoune::{anonymous}::add_flags(Completer&&, Kakoune::Completions::Flags)::<lambda(const Kakoune::Context&, Kakoune::CompletionFlags, const Kakoune::String&, Kakoune::ByteCount)> [with Completer = Kakoune::Completions (&)(const Kakoune::Context&, Kakoune::CompletionFlags, Kakoune::StringView, Kakoune::ByteCount)]
’
commands.cc:110:22: required from ‘struct Kakoune::{anonymous}::add_flags(Completer&&, Kakoune::Completions::Flags) [with Completer = Kakoune::Completions (&)(const Kakoune::Context&, Kakoune::CompletionFlags, Kakoune::StringView, Kakoune::ByteCount)]::<lambda(const class Kakoune::Context&, enum class Kakoune::CompletionFlags, const class Kakoune::String&, struct Kakoune::ByteCount)>’
commands.cc:112:5: required from ‘auto Kakoune::{anonymous}::add_flags(Completer&&, Kakoune::Completions::Flags) [with Completer = Kakoune::Completions (&)(const Kakoune::Context&, Kakoune::CompletionFlags, Kakoune::StringView, Kakoune::ByteCount)]’
commands.cc:118:21: required from ‘auto Kakoune::{anonymous}::menu(Completer&&) [with Completer = Kakoune::Completions (&)(const Kakoune::Context&, Kakoune::CompletionFlags, Kakoune::StringView, Kakoune::ByteCount)]’
commands.cc:712:51: required from here
commands.cc:109:27: error: variable ‘completer’ has function type
Completions res = completer(context, flags, prefix, cursor_pos);
^~~~~~~~~
commands.cc:109:27: error: variable ‘completer’ has function type
commands.cc: In instantiation of ‘struct Kakoune::{anonymous}::add_flags(Completer&&, Kakoune::Completions::Flags) [with Completer = Kakoune::Completions (&)(const Kakoune::Context&, Kakoune::CompletionFlags, Kakoune::StringView, Kakoune::ByteCount)]::<lambda(const class Kakoune::Context&, enum class Kakoune::CompletionFlags, const class Kakoune::String&, struct Kakoune::ByteCount)>’:
commands.cc:112:5: required from ‘auto Kakoune::{anonymous}::add_flags(Completer&&, Kakoune::Completions::Flags) [with Completer = Kakoune::Completions (&)(const Kakoune::Context&, Kakoune::CompletionFlags, Kakoune::StringView, Kakoune::ByteCount)]’
commands.cc:118:21: required from ‘auto Kakoune::{anonymous}::menu(Completer&&) [with Completer = Kakoune::Completions (&)(const Kakoune::Context&, Kakoune::CompletionFlags, Kakoune::StringView, Kakoune::ByteCount)]’
commands.cc:712:51: required from here
commands.cc:109:27: error: field ‘Kakoune::{anonymous}::add_flags(Completer&&, Kakoune::Completions::Flags) [with Completer = Kakoune::Completions (&)(const Kakoune::Context&, Kakoune::CompletionFlags, Kakoune::StringView, Kakoune::ByteCount)]::<lambda(const Kakoune::Context&, Kakoune::CompletionFlags, const Kakoune::String&, Kakoune::ByteCount)>::<completer capture>’ invalidly declared function type
g++ -O3 -pedantic -std=c++17 -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -MD -MP -MF .insert_completer.opt.d -c -o .insert_completer.opt.o insert_completer.cc
g++ -O3 -pedantic -std=c++17 -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -MD -MP -MF .json_ui.opt.d -c -o .json_ui.opt.o json_ui.cc
g++ -O3 -pedantic -std=c++17 -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -MD -MP -MF .keymap_manager.opt.d -c -o .keymap_manager.opt.o keymap_manager.cc
g++ -O3 -pedantic -std=c++17 -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -MD -MP -MF .keys.opt.d -c -o .keys.opt.o keys.cc
g++ -O3 -pedantic -std=c++17 -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -MD -MP -MF .line_modification.opt.d -c -o .line_modification.opt.o line_modification.cc
g++ -O3 -pedantic -std=c++17 -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -MD -MP -MF .main.opt.d -c -o .main.opt.o main.cc
g++ -O3 -pedantic -std=c++17 -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -MD -MP -MF .memory.opt.d -c -o .memory.opt.o memory.cc
g++ -D_GNU_SOURCE -D_DEFAULT_SOURCE -I/usr/include/ncursesw -O3 -pedantic -std=c++17 -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -MD -MP -MF .ncurses_ui.opt.d -c -o .ncurses_ui.opt.o ncurses_ui.cc
g++ -O3 -pedantic -std=c++17 -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -MD -MP -MF .normal.opt.d -c -o .normal.opt.o normal.cc
Makefile:102: recipe for target '.commands.opt.o' failed
make: *** [.commands.opt.o] Error 1