Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #11698

error: void value not ignored as it ought to be bool type(std::string_view s) { return type(s.data(), s.length()); }

Newsgroups comp.programming
Date 2021-01-01 05:02 -0800
Message-ID <a575ac00-e20c-4502-aaf2-ef34b77c565cn@googlegroups.com> (permalink)
Subject error: void value not ignored as it ought to be bool type(std::string_view s) { return type(s.data(), s.length()); }
From Hongyi Zhao <hongyi.zhao@gmail.com>

Show all headers | View raw


On Ubuntu 20.04, I try to compile the git master version of libime <https://github.com/fcitx/libime> but failed. See following for more detailed info:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal

$ git clone https://github.com/fcitx/libime.git libime.git
$ cd libime.git
$ mkdir build && cd $_
$ cmake ..
$ env all_proxy=http://127.0.0.1:8080 make -j 44
[ 28%] Built target kenlm
[ 28%] Building CXX object src/libime/core/CMakeFiles/IMECore.dir/inputbuffer.cpp.o
In file included from /home/werner/Public/repo/github.com/fcitx/libime.git/src/libime/core/inputbuffer.cpp:6:
/home/werner/Public/repo/github.com/fcitx/libime.git/src/libime/core/inputbuffer.h: In member function ‘bool libime::InputBuffer::type(std::string_view)’:
/home/werner/Public/repo/github.com/fcitx/libime.git/src/libime/core/inputbuffer.h:49:48: error: void value not ignored as it ought to be
49 | bool type(std::string_view s) { return type(s.data(), s.length()); }
| ~~~~^~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [src/libime/core/CMakeFiles/IMECore.dir/build.make:102: src/libime/core/CMakeFiles/IMECore.dir/inputbuffer.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:816: src/libime/core/CMakeFiles/IMECore.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Any hints for solving this problem?

Regards,
HY

Back to comp.programming | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

error: void value not ignored as it ought to be bool type(std::string_view s) { return type(s.data(), s.length()); } Hongyi Zhao <hongyi.zhao@gmail.com> - 2021-01-01 05:02 -0800
  Re: error: void value not ignored as it ought to be bool type(std::string_view s) { return type(s.data(), s.length()); } Mina Mina <iiiiiiiiiiiia@bestmail.us> - 2021-01-04 07:35 -0800

csiph-web