Comments (6)
Hello! Thank you for the report. I will need to reproduce this problem locally- assume this is on Arch? I was unfortunately unable to get any additional info with the other issue that would be sufficient to reproduce it, if you could provide some details it would be nice (and we might hopefully fix this).
What Arch, gcc, glibc and libstdc++ versions are this? (or better, is there e.g. an Arch docker image where I could try to reproduce the issue, or even try to make yay install work?)
from codecrypt.
(For the sake of archival I repost the error here:
CXX src/ccr-hashfile.o
In file included from src/hashfile.cpp:28:
src/hash.h:36:33: error: template argument 1 is invalid
36 | virtual std::vector<byte> operator() (const std::vector<byte>&) = 0;
| ^
src/hash.h:36:33: error: template argument 2 is invalid
src/hash.h:36:69: error: template argument 1 is invalid
36 | virtual std::vector<byte> operator() (const std::vector<byte>&) = 0;
| ^
src/hash.h:36:69: error: template argument 2 is invalid
src/hash.h:36:69: error: template argument 1 is invalid
src/hash.h:36:69: error: template argument 2 is invalid
src/hash.h:36:69: error: template argument 1 is invalid
src/hash.h:36:69: error: template argument 2 is invalid
src/hash.h:36:53: error: invalid template-id
36 | virtual std::vector<byte> operator() (const std::vector<byte>&) = 0;
| ^~~
src/hash.h:36:65: error: reference to ‘byte’ is ambiguous
36 | virtual std::vector<byte> operator() (const std::vector<byte>&) = 0;
| ^~~~
In file included from /usr/include/c++/12.2.0/string:42,
from src/sencode.h:24,
from src/hashfile.h:25,
from src/hashfile.cpp:21:
/usr/include/c++/12.2.0/bits/cpp_type_traits.h:406:30: note: candidates are: ‘enum class std::byte’
406 | enum class byte : unsigned char;
| ^~~~
In file included from src/hashfile.h:24:
src/types.h:31:23: note: ‘typedef unsigned char byte’
31 | typedef unsigned char byte;
| ^~~~
src/hash.h:36:47: error: class template placeholder ‘std::vector’ not permitted in this context
36 | virtual std::vector<byte> operator() (const std::vector<byte>&) = 0;
| ^~~~~
src/hash.h:46:33: error: reference to ‘byte’ is ambiguous
46 | virtual void eat (const byte*begin, const byte*end) = 0;
| ^~~~
/usr/include/c++/12.2.0/bits/cpp_type_traits.h:406:30: note: candidates are: ‘enum class std::byte’
406 | enum class byte : unsigned char;
| ^~~~
src/types.h:31:23: note: ‘typedef unsigned char byte’
31 | typedef unsigned char byte;
| ^~~~
src/hash.h:46:51: error: reference to ‘byte’ is ambiguous
46 | virtual void eat (const byte*begin, const byte*end) = 0;
| ^~~~
/usr/include/c++/12.2.0/bits/cpp_type_traits.h:406:30: note: candidates are: ‘enum class std::byte’
406 | enum class byte : unsigned char;
| ^~~~
src/types.h:31:23: note: ‘typedef unsigned char byte’
31 | typedef unsigned char byte;
| ^~~~
src/hash.h:47:33: error: template argument 1 is invalid
47 | virtual std::vector<byte> finish() = 0;
| ^
src/hash.h:47:33: error: template argument 2 is invalid
src/hash.h:50:41: error: template argument 1 is invalid
50 | void eat (const std::vector<byte>&a) {
| ^
src/hash.h:50:41: error: template argument 2 is invalid
src/hash.h:50:41: error: template argument 1 is invalid
src/hash.h:50:41: error: template argument 2 is invalid
src/hash.h:50:41: error: template argument 1 is invalid
src/hash.h:50:41: error: template argument 2 is invalid
src/hash.h:50:25: error: invalid template-id
50 | void eat (const std::vector<byte>&a) {
| ^~~
src/hash.h:50:37: error: reference to ‘byte’ is ambiguous
50 | void eat (const std::vector<byte>&a) {
| ^~~~
/usr/include/c++/12.2.0/bits/cpp_type_traits.h:406:30: note: candidates are: ‘enum class std::byte’
406 | enum class byte : unsigned char;
| ^~~~
src/types.h:31:23: note: ‘typedef unsigned char byte’
31 | typedef unsigned char byte;
| ^~~~
src/hash.h:50:19: error: template placeholder type ‘const vector<...auto...>’ must be followed by a simple declarator-id
50 | void eat (const std::vector<byte>&a) {
| ^~~~~
In file included from /usr/include/c++/12.2.0/vector:64,
from src/sencode.h:25:
/usr/include/c++/12.2.0/bits/stl_vector.h:423:11: note: ‘template<class _Tp, class _Alloc> class std::vector’ declared here
423 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
src/hash.h: In member function ‘void hash_proc::eat(...)’:
src/hash.h:51:29: error: ‘a’ was not declared in this scope
51 | return eat (a.data(), a.data() + a.size());
| ^
src/hashfile.cpp: At global scope:
src/hashfile.cpp:52:25: error: reference to ‘byte’ is ambiguous
52 | void eat (const byte*a, const byte*aend) {
| ^~~~
/usr/include/c++/12.2.0/bits/cpp_type_traits.h:406:30: note: candidates are: ‘enum class std::byte’
406 | enum class byte : unsigned char;
| ^~~~
src/types.h:31:23: note: ‘typedef unsigned char byte’
31 | typedef unsigned char byte;
| ^~~~
src/hashfile.cpp:52:39: error: reference to ‘byte’ is ambiguous
52 | void eat (const byte*a, const byte*aend) {
| ^~~~
/usr/include/c++/12.2.0/bits/cpp_type_traits.h:406:30: note: candidates are: ‘enum class std::byte’
406 | enum class byte : unsigned char;
| ^~~~
src/types.h:31:23: note: ‘typedef unsigned char byte’
31 | typedef unsigned char byte;
| ^~~~
src/hashfile.cpp:56:25: error: template argument 1 is invalid
56 | std::vector<byte> finish() {
| ^
src/hashfile.cpp:56:25: error: template argument 2 is invalid
src/hashfile.cpp: In member function ‘virtual int size64proc::finish()’:
src/hashfile.cpp:57:33: error: template argument 1 is invalid
57 | std::vector<byte> r;
| ^
src/hashfile.cpp:57:33: error: template argument 2 is invalid
src/hashfile.cpp:58:19: error: request for member ‘resize’ in ‘r’, which is of non-class type ‘int’
58 | r.resize (8, 0);
| ^~~~~~
src/hashfile.cpp:60:26: error: invalid types ‘int[int]’ for array subscript
60 | r[i] = s & 0xff;
| ^
src/hashfile.cpp: In member function ‘bool hashfile::create(std::istream&)’:
src/hashfile.cpp:102:25: error: template argument 1 is invalid
102 | std::vector<byte> buf;
| ^
src/hashfile.cpp:102:25: error: template argument 2 is invalid
src/hashfile.cpp:103:13: error: request for member ‘resize’ in ‘buf’, which is of non-class type ‘int’
103 | buf.resize (8192);
| ^~~~~~
src/hashfile.cpp:106:41: error: invalid types ‘int[int]’ for array subscript
106 | in.read ( (char*) & (buf[0]), 8192);
| ^
src/hashfile.cpp:112:29: error: request for member ‘resize’ in ‘buf’, which is of non-class type ‘int’
112 | buf.resize (in.gcount());
| ^~~~~~
src/hashfile.cpp:116:70: error: no match for ‘operator=’ (operand types are ‘std::map<std::__cxx11::basic_string<char>, std::vector<unsigned char> >::mapped_type’ {aka ‘std::vector<unsigned char>’} and ‘int’)
116 | hashes[i->first] = i->second->finish();
| ^
In file included from /usr/include/c++/12.2.0/vector:70:
/usr/include/c++/12.2.0/bits/vector.tcc:204:5: note: candidate: ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]’
204 | vector<_Tp, _Alloc>::
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/12.2.0/bits/vector.tcc:205:42: note: no known conversion for argument 1 from ‘int’ to ‘const std::vector<unsigned char>&’
205 | operator=(const vector<_Tp, _Alloc>& __x)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/12.2.0/bits/stl_vector.h:761:7: note: candidate: ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]’
761 | operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
| ^~~~~~~~
/usr/include/c++/12.2.0/bits/stl_vector.h:761:26: note: no known conversion for argument 1 from ‘int’ to ‘std::vector<unsigned char>&&’
761 | operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
| ~~~~~~~~~^~~
/usr/include/c++/12.2.0/bits/stl_vector.h:783:7: note: candidate: ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]’
783 | operator=(initializer_list<value_type> __l)
| ^~~~~~~~
/usr/include/c++/12.2.0/bits/stl_vector.h:783:46: note: no known conversion for argument 1 from ‘int’ to ‘std::initializer_list<unsigned char>’
783 | operator=(initializer_list<value_type> __l)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
src/hashfile.cpp: In member function ‘int hashfile::verify(std::istream&)’:
src/hashfile.cpp:143:25: error: template argument 1 is invalid
143 | std::vector<byte> buf;
| ^
src/hashfile.cpp:143:25: error: template argument 2 is invalid
src/hashfile.cpp:144:13: error: request for member ‘resize’ in ‘buf’, which is of non-class type ‘int’
144 | buf.resize (8192);
| ^~~~~~
src/hashfile.cpp:147:41: error: invalid types ‘int[int]’ for array subscript
147 | in.read ( (char*) & (buf[0]), 8192);
| ^
src/hashfile.cpp:153:29: error: request for member ‘resize’ in ‘buf’, which is of non-class type ‘int’
153 | buf.resize (in.gcount());
| ^~~~~~
src/hashfile.cpp:170:31: error: no match for ‘operator==’ (operand types are ‘std::vector<unsigned char>’ and ‘int’)
170 | if (i->second == hm[i->first]->finish()) {
| ~~~~~~~~~ ^~ ~~~~~~~~~~~~~~~~~~~~~~
| | |
| std::vector<unsigned char> int
In file included from /usr/include/c++/12.2.0/bits/char_traits.h:39,
from /usr/include/c++/12.2.0/string:40:
/usr/include/c++/12.2.0/bits/postypes.h:192:5: note: candidate: ‘template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)’
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/12.2.0/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
src/hashfile.cpp:170:55: note: ‘std::vector<unsigned char>’ is not derived from ‘const std::fpos<_StateT>’
170 | if (i->second == hm[i->first]->finish()) {
| ^
In file included from /usr/include/c++/12.2.0/string:41:
/usr/include/c++/12.2.0/bits/allocator.h:219:5: note: candidate: ‘template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)’
219 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/12.2.0/bits/allocator.h:219:5: note: template argument deduction/substitution failed:
src/hashfile.cpp:170:55: note: ‘std::vector<unsigned char>’ is not derived from ‘const std::allocator<_CharT>’
170 | if (i->second == hm[i->first]->finish()) {
| ^
In file included from /usr/include/c++/12.2.0/string:47:
/usr/include/c++/12.2.0/bits/stl_iterator.h:444:5: note: candidate: ‘template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)’
444 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/12.2.0/bits/stl_iterator.h:444:5: note: template argument deduction/substitution failed:
src/hashfile.cpp:170:55: note: ‘std::vector<unsigned char>’ is not derived from ‘const std::reverse_iterator<_Iterator>’
170 | if (i->second == hm[i->first]->finish()) {
| ^
/usr/include/c++/12.2.0/bits/stl_iterator.h:489:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)’
489 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/12.2.0/bits/stl_iterator.h:489:5: note: template argument deduction/substitution failed:
src/hashfile.cpp:170:55: note: ‘std::vector<unsigned char>’ is not derived from ‘const std::reverse_iterator<_Iterator>’
170 | if (i->second == hm[i->first]->finish()) {
| ^
/usr/include/c++/12.2.0/bits/stl_iterator.h:1656:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)’
1656 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/12.2.0/bits/stl_iterator.h:1656:5: note: template argument deduction/substitution failed:
src/hashfile.cpp:170:55: note: ‘std::vector<unsigned char>’ is not derived from ‘const std::move_iterator<_IteratorL>’
170 | if (i->second == hm[i->first]->finish()) {
| ^
/usr/include/c++/12.2.0/bits/stl_iterator.h:1726:5: note: candidate: ‘template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)’
1726 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/12.2.0/bits/stl_iterator.h:1726:5: note: template argument deduction/substitution failed:
src/hashfile.cpp:170:55: note: ‘std::vector<unsigned char>’ is not derived from ‘const std::move_iterator<_IteratorL>’
170 | if (i->second == hm[i->first]->finish()) {
| ^
In file included from /usr/include/c++/12.2.0/bits/stl_algobase.h:64,
from /usr/include/c++/12.2.0/string:50:
/usr/include/c++/12.2.0/bits/stl_pair.h:640:5: note: candidate: ‘template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)’
640 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/12.2.0/bits/stl_pair.h:640:5: note: template argument deduction/substitution failed:
src/hashfile.cpp:170:55: note: ‘std::vector<unsigned char>’ is not derived from ‘const std::pair<_T1, _T2>’
170 | if (i->second == hm[i->first]->finish()) {
| ^
In file included from /usr/include/c++/12.2.0/bits/basic_string.h:47,
from /usr/include/c++/12.2.0/string:53:
/usr/include/c++/12.2.0/string_view:540:5: note: candidate: ‘template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)’
540 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/12.2.0/string_view:540:5: note: template argument deduction/substitution failed:
src/hashfile.cpp:170:55: note: ‘std::vector<unsigned char>’ is not derived from ‘std::basic_string_view<_CharT, _Traits>’
170 | if (i->second == hm[i->first]->finish()) {
| ^
/usr/include/c++/12.2.0/string_view:546:5: note: candidate: ‘template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)’
546 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/12.2.0/string_view:546:5: note: template argument deduction/substitution failed:
src/hashfile.cpp:170:55: note: ‘std::vector<unsigned char>’ is not derived from ‘std::basic_string_view<_CharT, _Traits>’
170 | if (i->second == hm[i->first]->finish()) {
| ^
/usr/include/c++/12.2.0/string_view:569:5: note: candidate: ‘template<class _CharT, class _Traits> constexpr bool std::operator==(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)’
569 | operator==(__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/12.2.0/string_view:569:5: note: template argument deduction/substitution failed:
src/hashfile.cpp:170:55: note: mismatched types ‘std::basic_string_view<_CharT, _Traits>’ and ‘int’
170 | if (i->second == hm[i->first]->finish()) {
| ^
/usr/include/c++/12.2.0/bits/basic_string.h:3575:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)’
3575 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/12.2.0/bits/basic_string.h:3575:5: note: template argument deduction/substitution failed:
src/hashfile.cpp:170:55: note: ‘std::vector<unsigned char>’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>’
170 | if (i->second == hm[i->first]->finish()) {
| ^
/usr/include/c++/12.2.0/bits/basic_string.h:3584:5: note: candidate: ‘template<class _CharT> typename __gnu_cxx::__enable_if<std::__is_char<_Tp>::__value, bool>::__type std::operator==(const __cxx11::basic_string<_CharT>&, const __cxx11::basic_string<_CharT>&)’
3584 | operator==(const basic_string<_CharT>& __lhs,
| ^~~~~~~~
/usr/include/c++/12.2.0/bits/basic_string.h:3584:5: note: template argument deduction/substitution failed:
src/hashfile.cpp:170:55: note: ‘std::vector<unsigned char>’ is not derived from ‘const std::__cxx11::basic_string<_CharT>’
170 | if (i->second == hm[i->first]->finish()) {
| ^
/usr/include/c++/12.2.0/bits/basic_string.h:3599:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)’
3599 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/12.2.0/bits/basic_string.h:3599:5: note: template argument deduction/substitution failed:
src/hashfile.cpp:170:55: note: ‘std::vector<unsigned char>’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>’
170 | if (i->second == hm[i->first]->finish()) {
| ^
/usr/include/c++/12.2.0/bits/basic_string.h:3640:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)’
3640 | operator==(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/12.2.0/bits/basic_string.h:3640:5: note: template argument deduction/substitution failed:
src/hashfile.cpp:170:55: note: mismatched types ‘const _CharT*’ and ‘std::vector<unsigned char>’
170 | if (i->second == hm[i->first]->finish()) {
| ^
/usr/include/c++/12.2.0/bits/stl_vector.h:2035:5: note: candidate: ‘template<class _Tp, class _Alloc> bool std::operator==(const vector<_Tp, _Alloc>&, const vector<_Tp, _Alloc>&)’
2035 | operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
| ^~~~~~~~
/usr/include/c++/12.2.0/bits/stl_vector.h:2035:5: note: template argument deduction/substitution failed:
src/hashfile.cpp:170:55: note: mismatched types ‘const std::vector<_Tp, _Alloc>’ and ‘int’
170 | if (i->second == hm[i->first]->finish()) {
| ^
In file included from /usr/include/c++/12.2.0/bits/locale_facets.h:48,
from /usr/include/c++/12.2.0/bits/basic_ios.h:37,
from /usr/include/c++/12.2.0/ios:44,
from /usr/include/c++/12.2.0/ostream:38,
from /usr/include/c++/12.2.0/iostream:39,
from src/hashfile.h:27:
/usr/include/c++/12.2.0/bits/streambuf_iterator.h:233:5: note: candidate: ‘template<class _CharT, class _Traits> bool std::operator==(const istreambuf_iterator<_CharT, _Traits>&, const istreambuf_iterator<_CharT, _Traits>&)’
233 | operator==(const istreambuf_iterator<_CharT, _Traits>& __a,
| ^~~~~~~~
/usr/include/c++/12.2.0/bits/streambuf_iterator.h:233:5: note: template argument deduction/substitution failed:
src/hashfile.cpp:170:55: note: ‘std::vector<unsigned char>’ is not derived from ‘const std::istreambuf_iterator<_CharT, _Traits>’
170 | if (i->second == hm[i->first]->finish()) {
| ^
In file included from /usr/include/c++/12.2.0/bits/stl_map.h:63,
from /usr/include/c++/12.2.0/map:61,
from src/hashfile.h:30:
/usr/include/c++/12.2.0/tuple:1496:5: note: candidate: ‘template<class ... _TElements, class ... _UElements> constexpr bool std::operator==(const tuple<_Args1 ...>&, const tuple<_Args2 ...>&)’
1496 | operator==(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/12.2.0/tuple:1496:5: note: template argument deduction/substitution failed:
src/hashfile.cpp:170:55: note: ‘std::vector<unsigned char>’ is not derived from ‘const std::tuple<_Args1 ...>’
170 | if (i->second == hm[i->first]->finish()) {
| ^
/usr/include/c++/12.2.0/bits/stl_map.h:1511:5: note: candidate: ‘template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator==(const map<_Key, _Tp, _Compare, _Allocator>&, const map<_Key, _Tp, _Compare, _Allocator>&)’
1511 | operator==(const map<_Key, _Tp, _Compare, _Alloc>& __x,
| ^~~~~~~~
/usr/include/c++/12.2.0/bits/stl_map.h:1511:5: note: template argument deduction/substitution failed:
src/hashfile.cpp:170:55: note: ‘std::vector<unsigned char>’ is not derived from ‘const std::map<_Key, _Tp, _Compare, _Allocator>’
170 | if (i->second == hm[i->first]->finish()) {
| ^
In file included from /usr/include/c++/12.2.0/map:62:
/usr/include/c++/12.2.0/bits/stl_multimap.h:1132:5: note: candidate: ‘template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator==(const multimap<_Key, _Tp, _Compare, _Allocator>&, const multimap<_Key, _Tp, _Compare, _Allocator>&)’
1132 | operator==(const multimap<_Key, _Tp, _Compare, _Alloc>& __x,
| ^~~~~~~~
/usr/include/c++/12.2.0/bits/stl_multimap.h:1132:5: note: template argument deduction/substitution failed:
src/hashfile.cpp:170:55: note: ‘std::vector<unsigned char>’ is not derived from ‘const std::multimap<_Key, _Tp, _Compare, _Allocator>’
170 | if (i->second == hm[i->first]->finish()) {
| ^
In file included from /usr/include/c++/12.2.0/x86_64-pc-linux-gnu/bits/c++allocator.h:33,
from /usr/include/c++/12.2.0/bits/allocator.h:46:
/usr/include/c++/12.2.0/bits/new_allocator.h:196:9: note: candidate: ‘template<class _Up> bool std::operator==(const __new_allocator<unsigned char>&, const __new_allocator<_Tp>&)’
196 | operator==(const __new_allocator&, const __new_allocator<_Up>&)
| ^~~~~~~~
/usr/include/c++/12.2.0/bits/new_allocator.h:196:9: note: template argument deduction/substitution failed:
src/hashfile.cpp:170:55: note: mismatched types ‘const std::__new_allocator<_Tp>’ and ‘int’
170 | if (i->second == hm[i->first]->finish()) {
| ^
In file included from /usr/include/c++/12.2.0/bits/ios_base.h:46,
from /usr/include/c++/12.2.0/ios:42:
/usr/include/c++/12.2.0/system_error:362:3: note: candidate: ‘bool std::operator==(const error_code&, const error_code&)’
362 | operator==(const error_code& __lhs, const error_code& __rhs) noexcept
| ^~~~~~~~
/usr/include/c++/12.2.0/system_error:362:32: note: no known conversion for argument 1 from ‘std::vector<unsigned char>’ to ‘const std::error_code&’
362 | operator==(const error_code& __lhs, const error_code& __rhs) noexcept
| ~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/12.2.0/system_error:368:3: note: candidate: ‘bool std::operator==(const error_code&, const error_condition&)’
368 | operator==(const error_code& __lhs, const error_condition& __rhs) noexcept
| ^~~~~~~~
/usr/include/c++/12.2.0/system_error:368:32: note: no known conversion for argument 1 from ‘std::vector<unsigned char>’ to ‘const std::error_code&’
368 | operator==(const error_code& __lhs, const error_condition& __rhs) noexcept
| ~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/12.2.0/system_error:376:3: note: candidate: ‘bool std::operator==(const error_condition&, const error_condition&)’
376 | operator==(const error_condition& __lhs,
| ^~~~~~~~
/usr/include/c++/12.2.0/system_error:376:37: note: no known conversion for argument 1 from ‘std::vector<unsigned char>’ to ‘const std::error_condition&’
376 | operator==(const error_condition& __lhs,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/12.2.0/system_error:408:3: note: candidate: ‘bool std::operator==(const error_condition&, const error_code&)’
408 | operator==(const error_condition& __lhs, const error_code& __rhs) noexcept
| ^~~~~~~~
/usr/include/c++/12.2.0/system_error:408:37: note: no known conversion for argument 1 from ‘std::vector<unsigned char>’ to ‘const std::error_condition&’
408 | operator==(const error_condition& __lhs, const error_code& __rhs) noexcept
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/12.2.0/bits/allocator.h:205:7: note: candidate: ‘bool std::operator==(const allocator<unsigned char>&, const allocator<unsigned char>&)’
205 | operator==(const allocator&, const allocator&) _GLIBCXX_NOTHROW
| ^~~~~~~~
/usr/include/c++/12.2.0/bits/allocator.h:205:18: note: no known conversion for argument 1 from ‘std::vector<unsigned char>’ to ‘const std::allocator<unsigned char>&’
205 | operator==(const allocator&, const allocator&) _GLIBCXX_NOTHROW
| ^~~~~~~~~~~~~~~~
make: *** [Makefile:872: src/ccr-hashfile.o] Error 1
)
from codecrypt.
Anyway, the error seems to be a name conflict of my byte
with the new cool C++17+ std::byte
. I just commited a fix to master
that should avoid this conflict. Seems to compile OK with both gcc
and clang
with -std=c++20
now.
Please try to compile from master
and confirm if this was the case (I'd make a tiny bump release. possible danger: you might need to also run autogen.sh
; you can avoid that by just patching the updated files in the latest release by applying 08e8bd6 manually). If not, I'll need the necessary info to reproduce your environment here.
from codecrypt.
I'll try it right now.
from codecrypt.
It works.
Sorry for the late reply.
Cheers, mate.
from codecrypt.
Perfect, thanks for confirm! I'll try to push out a maintenance release sometime.
from codecrypt.
Related Issues (20)
- Mac OSX install instructions HOT 1
- how to import key HOT 1
- Annealmail Thunderbird Add-on HOT 9
- Avoid parameters that allow timing/statistical attacks when used as decryption oracle HOT 16
- error: ambiguous local user specified HOT 9
- [REJECTED] Windows binary HOT 1
- Secret key protection HOT 6
- Entropy ? HOT 3
- A Question regarding HWRNG HOT 3
- AES HOT 2
- Ubuntu Install Problem HOT 2
- Use LGPL v2.1 instead of v3 for better license compatibility HOT 5
- Rewrite in Rust HOT 4
- Compile issue on macOS HOT 6
- How about add seed support for FMTSeq ? HOT 1
- It takes more than 10 minutes to generate keypair... HOT 2
- signed git tags / signed git commits HOT 1
- Does codecrypt also provides security regarding classical computer attacks? HOT 6
- YAY: "Package 'libcrypto++', required by 'virtual:world', not found" HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codecrypt.