when running the make command i get this error im not sure on what it means or how to fix it can somebody help
In file included from /home/pi/BeamMP-Server/BeamMP-Server/include/Common.h:35,
from /home/pi/BeamMP-Server/BeamMP-Server/test/test_main.cpp:4:
/home/pi/BeamMP-Server/BeamMP-Server/deps/lk-result/include/lk/Result.h:51:14: error: expected identifier before ‘!’ token
requires(!std::same_as<OT, Error> && !std::same_as<OT, E> && !std::same_as<OT, T>)
^
/home/pi/BeamMP-Server/BeamMP-Server/deps/lk-result/include/lk/Result.h:51:14: error: expected ‘,’ or ‘…’ before ‘!’ token
/home/pi/BeamMP-Server/BeamMP-Server/deps/lk-result/include/lk/Result.h:52:9: error: expected constructor, destructor, or type conversion before ‘GenericResult’
GenericResult(const OT& value) {
^~~~~~~~~~~~~
In file included from /home/pi/BeamMP-Server/BeamMP-Server/include/Common.h:35,
from /home/pi/BeamMP-Server/BeamMP-Server/test/test_main.cpp:4:
/home/pi/BeamMP-Server/BeamMP-Server/deps/lk-result/include/lk/Result.h:85:14: error: expected identifier before ‘!’ token
requires(!std::same_as<E, OE>) GenericResult& with_error(const OE& error_val) {
^
/home/pi/BeamMP-Server/BeamMP-Server/deps/lk-result/include/lk/Result.h:85:14: error: expected ‘,’ or ‘…’ before ‘!’ token
/home/pi/BeamMP-Server/BeamMP-Server/deps/lk-result/include/lk/Result.h:85:36: error: expected constructor, destructor, or type conversion before ‘GenericResult’
requires(!std::same_as<E, OE>) GenericResult& with_error(const OE& error_val) {
^~~~~~~~~~~~~
/home/pi/BeamMP-Server/BeamMP-Server/deps/lk-result/include/lk/Result.h:90:14: error: expected identifier before ‘!’ token
requires(!std::same_as<T, OT>) GenericResult& with_value(const OT& value) {
^
/home/pi/BeamMP-Server/BeamMP-Server/deps/lk-result/include/lk/Result.h:90:14: error: expected ‘,’ or ‘…’ before ‘!’ token
/home/pi/BeamMP-Server/BeamMP-Server/deps/lk-result/include/lk/Result.h:90:36: error: expected constructor, destructor, or type conversion before ‘GenericResult’
requires(!std::same_as<T, OT>) GenericResult& with_value(const OT& value) {
^~~~~~~~~~~~~
/home/pi/BeamMP-Server/BeamMP-Server/deps/lk-result/include/lk/Result.h:99:14: error: expected identifier before ‘!’ token
requires(!std::same_as<E, OE>) static GenericResult Error(const OE& error) {
^
/home/pi/BeamMP-Server/BeamMP-Server/deps/lk-result/include/lk/Result.h:99:14: error: expected ‘,’ or ‘…’ before ‘!’ token
/home/pi/BeamMP-Server/BeamMP-Server/deps/lk-result/include/lk/Result.h:99:36: error: expected constructor, destructor, or type conversion before ‘static’
requires(!std::same_as<E, OE>) static GenericResult Error(const OE& error) {
^~~~~~
/home/pi/BeamMP-Server/BeamMP-Server/deps/lk-result/include/lk/Result.h:108:14: error: expected identifier before ‘!’ token
requires(!std::same_as<E, OT>) static GenericResult Ok(const OT& value) {
^
/home/pi/BeamMP-Server/BeamMP-Server/deps/lk-result/include/lk/Result.h:108:14: error: expected ‘,’ or ‘…’ before ‘!’ token
/home/pi/BeamMP-Server/BeamMP-Server/deps/lk-result/include/lk/Result.h:108:36: error: expected constructor, destructor, or type conversion before ‘static’
requires(!std::same_as<E, OT>) static GenericResult Ok(const OT& value) {
^~~~~~
make[2]: *** [CMakeFiles/BeamMP-Server-tests.dir/build.make:63: CMakeFiles/BeamMP-Server-tests.dir/test/test_main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:251: CMakeFiles/BeamMP-Server-tests.dir/all] Error 2
addition when compileing i get these errors frequently
/home/pi/BeamMP-Server/BeamMP-Server/deps/commandline/commandline.cpp: In member function ‘void Commandline::update_current_buffer_view()’:
/home/pi/BeamMP-Server/BeamMP-Server/deps/commandline/commandline.cpp:147:12: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘std::__cxx11::basic_string::size_type’ {aka ‘unsigned int’} [-Wformat=]
printf(“\x1b[2K\x1b[0G%s%s\x1b[%luG”, m_prompt.c_str(), m_current_buffer.c_str(), m_prompt.size() + m_cursor_pos + 1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/BeamMP-Server/BeamMP-Server/deps/commandline/commandline.cpp: In member function ‘void Commandline::io_thread_main()’:
/home/pi/BeamMP-Server/BeamMP-Server/deps/commandline/commandline.cpp:419:20: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘std::__cxx11::basic_string::size_type’ {aka ‘unsigned int’} [-Wformat=]
printf(“\x1b[2K\x1b[0G%s\n%s%s\x1b[%luG”, to_write.c_str(), m_prompt.c_str(), m_current_buffer.c_str(), m_prompt.size() + m_cursor_pos + 1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~