Jump to content

Recommended Posts

In file included from /usr/local/include/boost/predef/os/bsd/free.h:37:0,
                 from /usr/local/include/boost/predef/os/bsd.h:96,
                 from /usr/local/include/boost/predef/os/bsd/dragonfly.h:11,
                 from /usr/local/include/boost/predef/os/bsd.h:95,
                 from /usr/local/include/boost/predef/os/bsd/bsdi.h:11,
                 from /usr/local/include/boost/predef/os/bsd.h:52,
                 from /usr/local/include/boost/predef/os.h:18,
                 from /usr/local/include/boost/predef.h:17,
                 from /usr/local/include/boost/unordered/detail/fwd.hpp:14,
                 from /usr/local/include/boost/unordered/detail/implementation.hpp:44,
                 from /usr/local/include/boost/unordered/detail/map.hpp:6,
                 from /usr/local/include/boost/unordered/unordered_map.hpp:21,
                 from /usr/local/include/boost/unordered_map.hpp:17,
                 from questmanager.h:4,
                 from OXEvent.cpp:4:
../../common/stl.h:99:32: error: expected ')' before 'a'
  template <typename T> T MIN(T a, T b)
                                ^
../../common/stl.h:99:32: error: expected ')' before 'a'
../../common/stl.h:99:32: error: expected ')' before 'a'
../../common/stl.h:104:32: error: expected ')' before 'a'
  template <typename T> T MAX(T a, T b)
                                ^
../../common/stl.h:104:32: error: expected ')' before 'a'
../../common/stl.h:104:32: error: expected ')' before 'a'

 

  • Love 1
Link to comment
https://metin2.dev/topic/20031-template-typename-error/
Share on other sites

  • 3 weeks later...
  • Active+ Member

Ok the most weird thing happened here. First of all thank you for your answer @Mali61. It didn't solve the problem but it helped me figure something out.

So I tried to investigate (I'm not too familiar with the source code) until I was stuck in a question: what should I replace with the given functions??? Then I noticed something in the error:

from questmanager.h:4,

this is the first source file mentioned so I thought let's see what gives the compiler the goosebumps about that line. What I found there was

#include <boost/unordered_map.hpp>

and then I remembered a comment read in this forum somewhere saying something like

Quote

for newer compilers replace boost::unordered_map with std::unordered_map

and that's when I said BINGO! I made some research and with your helpful comment, the file dissapeard from the error. Now I just need to replace all

#include <boost/unordered_map.hpp>

with:

#include <unordered_map>
#include <algorithm>

and everywhere saying:

boost::unordered_map(...

replace with

std::unordered_map

I hope that's just it but in case it's not, would you mind telling what to replace those functions with?

Thank you so much for this spark :)

Best regards

 

EDIT: Ok that totally failed. Now I got a whole new error and I believe it's because of gcc49 (upgrading to 82 hoping it will solve the problem).

In case someone has a second opinion here is the error:

In file included from /usr/local/lib/gcc49/include/c++/bits/hashtable.h:35:0,
                 from /usr/local/lib/gcc49/include/c++/unordered_map:47,
                 from questmanager.h:4,
                 from OXEvent.cpp:4:
/usr/local/lib/gcc49/include/c++/bits/hashtable_policy.h: In instantiation of 'struct std::__detail::__is_noexcept_hash<VID, std::hash<VID> >':
/usr/local/lib/gcc49/include/c++/type_traits:134:12:   required from 'struct std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > >'
/usr/local/lib/gcc49/include/c++/type_traits:145:38:   required from 'struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:100:66:   required from 'class std::unordered_map<VID, unsigned int>'
char.h:572:34:   required from here
/usr/local/lib/gcc49/include/c++/bits/hashtable_policy.h:85:33: error: no match for call to '(const std::hash<VID>) (const VID&)'
  noexcept(declval<const _Hash&>()(declval<const _Key&>()))>
                                 ^
In file included from /usr/local/lib/gcc49/include/c++/bits/move.h:57:0,
                 from /usr/local/lib/gcc49/include/c++/bits/stl_pair.h:59,
                 from /usr/local/lib/gcc49/include/c++/utility:70,
                 from /usr/local/lib/gcc49/include/c++/algorithm:60,
                 from stdafx.h:16,
                 from OXEvent.cpp:1:
/usr/local/lib/gcc49/include/c++/type_traits: In instantiation of 'struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >':
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:100:66:   required from 'class std::unordered_map<VID, unsigned int>'
char.h:572:34:   required from here
/usr/local/lib/gcc49/include/c++/type_traits:145:38: error: 'value' is not a member of 'std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > >'
     : public integral_constant<bool, !_Pp::value>
                                      ^
In file included from /usr/local/lib/gcc49/include/c++/unordered_map:48:0,
                 from questmanager.h:4,
                 from OXEvent.cpp:4:
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h: In instantiation of 'class std::unordered_map<VID, unsigned int>':
char.h:572:34:   required from here
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:100:66: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef __umap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc>  _Hashtable;
                                                                  ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:107:45: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::key_type key_type;
                                             ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:108:47: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::value_type value_type;
                                               ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:109:48: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::mapped_type mapped_type;
                                                ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:110:43: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::hasher hasher;
                                           ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:111:46: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::key_equal key_equal;
                                              ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:112:51: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::allocator_type allocator_type;
                                                   ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:117:45: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::pointer  pointer;
                                             ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:118:50: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::const_pointer const_pointer;
                                                  ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:119:47: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::reference  reference;
                                               ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:120:52: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::const_reference const_reference;
                                                    ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:121:46: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::iterator  iterator;
                                              ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:122:51: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::const_iterator const_iterator;
                                                   ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:123:51: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::local_iterator local_iterator;
                                                   ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:124:57: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::const_local_iterator const_local_iterator;
                                                         ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:125:47: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::size_type  size_type;
                                               ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:126:52: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::difference_type difference_type;
                                                    ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:242:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       operator=(initializer_list<value_type> __l)
       ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:340:2: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
  emplace(_Args&&... __args)
  ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:392:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       insert(const value_type& __x)
       ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:399:2: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
  insert(_Pair&& __x)
  ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:459:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       insert(initializer_list<value_type> __l)
       ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:604:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       equal_range(const key_type& __x)
       ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:608:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       equal_range(const key_type& __x) const
       ^
In file included from OXEvent.cpp:9:0:
char.h: In constructor 'TSkillUseInfo::TSkillUseInfo()':
char.h:576:32: error: no matching function for call to 'std::unordered_map<VID, unsigned int>::unordered_map()'
   dwVID(0), isGrandMaster(false)
                                ^
char.h:576:32: note: candidates are:
In file included from /usr/local/lib/gcc49/include/c++/unordered_map:48:0,
                 from questmanager.h:4,
                 from OXEvent.cpp:4:
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:172:7: note: std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&&) [with _Key = VID; _Tp = unsigned int; _Hash = std::hash<VID>; _Pred = std::equal_to<VID>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >]
       unordered_map(unordered_map&&) = default;
       ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:172:7: note:   candidate expects 1 argument, 0 provided
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:169:7: note: std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(const std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&) [with _Key = VID; _Tp = unsigned int; _Hash = std::hash<VID>; _Pred = std::equal_to<VID>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >]
       unordered_map(const unordered_map&) = default;
       ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:169:7: note:   candidate expects 1 argument, 0 provided
In file included from desc.h:7:0,
                 from OXEvent.cpp:12:
cipher.h: In member function 'void Cipher::Encrypt(void*, size_t)':
cipher.h:31:28: error: 'byte' was not declared in this scope
     encoder_->ProcessData((byte*)buffer, (const byte*)buffer, length);
                            ^
cipher.h:31:28: note: suggested alternative:
In file included from ../../../Extern/include/cryptopp/cryptlib.h:102:0,
                 from cipher.h:6,
                 from desc.h:7,
                 from OXEvent.cpp:12:
../../../Extern/include/cryptopp/config.h:237:23: note:   'CryptoPP::byte'
 typedef unsigned char byte;
                       ^
In file included from desc.h:7:0,
                 from OXEvent.cpp:12:
cipher.h:31:33: error: expected primary-expression before ')' token
     encoder_->ProcessData((byte*)buffer, (const byte*)buffer, length);
                                 ^
cipher.h:31:49: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
     encoder_->ProcessData((byte*)buffer, (const byte*)buffer, length);
                                                 ^
cipher.h:31:43: error: expected primary-expression before 'const'
     encoder_->ProcessData((byte*)buffer, (const byte*)buffer, length);
                                           ^
cipher.h:31:43: error: expected ')' before 'const'
cipher.h: In member function 'void Cipher::Decrypt(void*, size_t)':
cipher.h:39:28: error: 'byte' was not declared in this scope
     decoder_->ProcessData((byte*)buffer, (const byte*)buffer, length);
                            ^
cipher.h:39:28: note: suggested alternative:
In file included from ../../../Extern/include/cryptopp/cryptlib.h:102:0,
                 from cipher.h:6,
                 from desc.h:7,
                 from OXEvent.cpp:12:
../../../Extern/include/cryptopp/config.h:237:23: note:   'CryptoPP::byte'
 typedef unsigned char byte;
                       ^
In file included from desc.h:7:0,
                 from OXEvent.cpp:12:
cipher.h:39:33: error: expected primary-expression before ')' token
     decoder_->ProcessData((byte*)buffer, (const byte*)buffer, length);
                                 ^
cipher.h:39:49: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
     decoder_->ProcessData((byte*)buffer, (const byte*)buffer, length);
                                                 ^
cipher.h:39:43: error: expected primary-expression before 'const'
     decoder_->ProcessData((byte*)buffer, (const byte*)buffer, length);
                                           ^
cipher.h:39:43: error: expected ')' before 'const'
gmake[1]: *** [Makefile:104: OBJDIR_GAME/OXEvent.o] Error 1
gmake[1]: Leaving directory '/usr/src/NEW/Server/game/src'
gmake: *** [Makefile:82: all] Error 2

 

Link to comment
https://metin2.dev/topic/20031-template-typename-error/#findComment-109583
Share on other sites

  • Active+ Member
1 hour ago, Originale said:

Replace const byte* to CryptoPP::byte* for cipher.h

I did that it only needed to change 2 lines... Errors still remain:

In file included from /usr/local/lib/gcc49/include/c++/bits/hashtable.h:35:0,
                 from /usr/local/lib/gcc49/include/c++/unordered_map:47,
                 from questmanager.h:4,
                 from OXEvent.cpp:4:
/usr/local/lib/gcc49/include/c++/bits/hashtable_policy.h: In instantiation of 'struct std::__detail::__is_noexcept_hash<VID, std::hash<VID> >':
/usr/local/lib/gcc49/include/c++/type_traits:134:12:   required from 'struct std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > >'
/usr/local/lib/gcc49/include/c++/type_traits:145:38:   required from 'struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:100:66:   required from 'class std::unordered_map<VID, unsigned int>'
char.h:572:34:   required from here
/usr/local/lib/gcc49/include/c++/bits/hashtable_policy.h:85:33: error: no match for call to '(const std::hash<VID>) (const VID&)'
  noexcept(declval<const _Hash&>()(declval<const _Key&>()))>
                                 ^
In file included from /usr/local/lib/gcc49/include/c++/bits/move.h:57:0,
                 from /usr/local/lib/gcc49/include/c++/bits/stl_pair.h:59,
                 from /usr/local/lib/gcc49/include/c++/utility:70,
                 from /usr/local/lib/gcc49/include/c++/algorithm:60,
                 from stdafx.h:16,
                 from OXEvent.cpp:1:
/usr/local/lib/gcc49/include/c++/type_traits: In instantiation of 'struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >':
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:100:66:   required from 'class std::unordered_map<VID, unsigned int>'
char.h:572:34:   required from here
/usr/local/lib/gcc49/include/c++/type_traits:145:38: error: 'value' is not a member of 'std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > >'
     : public integral_constant<bool, !_Pp::value>
                                      ^
In file included from /usr/local/lib/gcc49/include/c++/unordered_map:48:0,
                 from questmanager.h:4,
                 from OXEvent.cpp:4:
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h: In instantiation of 'class std::unordered_map<VID, unsigned int>':
char.h:572:34:   required from here
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:100:66: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef __umap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc>  _Hashtable;
                                                                  ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:107:45: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::key_type key_type;
                                             ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:108:47: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::value_type value_type;
                                               ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:109:48: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::mapped_type mapped_type;
                                                ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:110:43: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::hasher hasher;
                                           ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:111:46: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::key_equal key_equal;
                                              ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:112:51: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::allocator_type allocator_type;
                                                   ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:117:45: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::pointer  pointer;
                                             ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:118:50: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::const_pointer const_pointer;
                                                  ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:119:47: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::reference  reference;
                                               ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:120:52: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::const_reference const_reference;
                                                    ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:121:46: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::iterator  iterator;
                                              ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:122:51: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::const_iterator const_iterator;
                                                   ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:123:51: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::local_iterator local_iterator;
                                                   ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:124:57: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::const_local_iterator const_local_iterator;
                                                         ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:125:47: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::size_type  size_type;
                                               ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:126:52: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       typedef typename _Hashtable::difference_type difference_type;
                                                    ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:242:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       operator=(initializer_list<value_type> __l)
       ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:340:2: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
  emplace(_Args&&... __args)
  ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:392:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       insert(const value_type& __x)
       ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:399:2: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
  insert(_Pair&& __x)
  ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:459:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       insert(initializer_list<value_type> __l)
       ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:604:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       equal_range(const key_type& __x)
       ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:608:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >'
       equal_range(const key_type& __x) const
       ^
In file included from OXEvent.cpp:9:0:
char.h: In constructor 'TSkillUseInfo::TSkillUseInfo()':
char.h:576:32: error: no matching function for call to 'std::unordered_map<VID, unsigned int>::unordered_map()'
   dwVID(0), isGrandMaster(false)
                                ^
char.h:576:32: note: candidates are:
In file included from /usr/local/lib/gcc49/include/c++/unordered_map:48:0,
                 from questmanager.h:4,
                 from OXEvent.cpp:4:
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:172:7: note: std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&&) [with _Key = VID; _Tp = unsigned int; _Hash = std::hash<VID>; _Pred = std::equal_to<VID>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >]
       unordered_map(unordered_map&&) = default;
       ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:172:7: note:   candidate expects 1 argument, 0 provided
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:169:7: note: std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(const std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&) [with _Key = VID; _Tp = unsigned int; _Hash = std::hash<VID>; _Pred = std::equal_to<VID>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >]
       unordered_map(const unordered_map&) = default;
       ^
/usr/local/lib/gcc49/include/c++/bits/unordered_map.h:169:7: note:   candidate expects 1 argument, 0 provided
In file included from desc.h:7:0,
                 from OXEvent.cpp:12:
cipher.h: In member function 'void Cipher::Encrypt(void*, size_t)':
cipher.h:31:59: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
     encoder_->ProcessData((CryptoPP::byte*)buffer, (const byte*)buffer, length);
                                                           ^
cipher.h:31:53: error: expected primary-expression before 'const'
     encoder_->ProcessData((CryptoPP::byte*)buffer, (const byte*)buffer, length);
                                                     ^
cipher.h:31:53: error: expected ')' before 'const'
cipher.h: In member function 'void Cipher::Decrypt(void*, size_t)':
cipher.h:39:59: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
     decoder_->ProcessData((CryptoPP::byte*)buffer, (const byte*)buffer, length);
                                                           ^
cipher.h:39:53: error: expected primary-expression before 'const'
     decoder_->ProcessData((CryptoPP::byte*)buffer, (const byte*)buffer, length);
                                                     ^
cipher.h:39:53: error: expected ')' before 'const'
gmake[1]: *** [Makefile:104: OBJDIR_GAME/OXEvent.o] Error 1
gmake[1]: Leaving directory '/usr/src/NEW/Server/game/src'
gmake: *** [Makefile:82: all] Error 2

I gotta say tho, that (const byte*) thingie really got me curious ?

Thanks btw :)

Link to comment
https://metin2.dev/topic/20031-template-typename-error/#findComment-109586
Share on other sites

  • Active+ Member

UPDATE:

So I updated my enviroment: FreeBSD 11.2 i386 with gcc8 installed and the latest clang, gmake, makedepend and pyhton built from the ports. Now the errors have changed as below:

gmake[1]: Entering directory '/usr/src/NEW/Server/game/src'
compile OXEvent.cpp
In file included from /usr/local/lib/gcc8/include/c++/unordered_map:46,
                 from questmanager.h:4,
                 from OXEvent.cpp:4:
/usr/local/lib/gcc8/include/c++/bits/hashtable.h: In instantiation of 'class std::_Hashtable<VID, std::pair<const VID, unsigned int>, std::allocator<std::pair<const VID, unsigned int> >, std::__detail::_Select1st, std::equal_to<VID>, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >':
/usr/local/lib/gcc8/include/c++/bits/unordered_map.h:105:18:   required from 'class std::unordered_map<VID, unsigned int>'
char.h:572:34:   required from here
/usr/local/lib/gcc8/include/c++/bits/hashtable.h:195:21: error: static assertion failed: hash function must be invocable with an argument of key type
       static_assert(__is_invocable<const _H1&, const _Key&>{},
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from OXEvent.cpp:9:
char.h: In constructor 'TSkillUseInfo::TSkillUseInfo()':
char.h:576:32: error: use of deleted function 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map() [with _Key = VID; _Tp = unsigned int; _Hash = std::hash<VID>; _Pred = std::equal_to<VID>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >]'
   dwVID(0), isGrandMaster(false)
                                ^
In file included from /usr/local/lib/gcc8/include/c++/unordered_map:47,
                 from questmanager.h:4,
                 from OXEvent.cpp:4:
/usr/local/lib/gcc8/include/c++/bits/unordered_map.h:141:7: note: 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map() [with _Key = VID; _Tp = unsigned int; _Hash = std::hash<VID>; _Pred = std::equal_to<VID>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >]' is implicitly deleted because the default definition would be ill-formed:
       unordered_map() = default;
       ^~~~~~~~~~~~~
/usr/local/lib/gcc8/include/c++/bits/unordered_map.h:141:7: error: use of deleted function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::_Hashtable() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<VID>; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, true>]'
In file included from /usr/local/lib/gcc8/include/c++/unordered_map:46,
                 from questmanager.h:4,
                 from OXEvent.cpp:4:
/usr/local/lib/gcc8/include/c++/bits/hashtable.h:413:7: note: 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::_Hashtable() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<VID>; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, true>]' is implicitly deleted because the default definition would be ill-formed:
       _Hashtable() = default;
       ^~~~~~~~~~
/usr/local/lib/gcc8/include/c++/bits/hashtable.h:413:7: error: use of deleted function 'std::__detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _H1, _H2, _Hash, _Traits>::_Hashtable_base() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<VID>; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _Traits = std::__detail::_Hashtable_traits<true, false, true>]'
In file included from /usr/local/lib/gcc8/include/c++/bits/hashtable.h:35,
                 from /usr/local/lib/gcc8/include/c++/unordered_map:46,
                 from questmanager.h:4,
                 from OXEvent.cpp:4:
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1824:5: note: 'std::__detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _H1, _H2, _Hash, _Traits>::_Hashtable_base() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<VID>; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _Traits = std::__detail::_Hashtable_traits<true, false, true>]' is implicitly deleted because the default definition would be ill-formed:
     _Hashtable_base() = default;
     ^~~~~~~~~~~~~~~
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1824:5: error: use of deleted function 'std::__detail::_Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2, std::__detail::_Default_ranged_hash, true>::_Hash_code_base() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _ExtractKey = std::__detail::_Select1st; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing]'
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1379:7: note: 'std::__detail::_Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2, std::__detail::_Default_ranged_hash, true>::_Hash_code_base() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _ExtractKey = std::__detail::_Select1st; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing]' is implicitly deleted because the default definition would be ill-formed:
       _Hash_code_base() = default;
       ^~~~~~~~~~~~~~~
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1379:7: error: use of deleted function 'std::__detail::_Hashtable_ebo_helper<_Nm, _Tp, true>::_Hashtable_ebo_helper() [with int _Nm = 1; _Tp = std::hash<VID>]'
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1106:7: note: 'std::__detail::_Hashtable_ebo_helper<_Nm, _Tp, true>::_Hashtable_ebo_helper() [with int _Nm = 1; _Tp = std::hash<VID>]' is implicitly deleted because the default definition would be ill-formed:
       _Hashtable_ebo_helper() = default;
       ^~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1106:7: error: use of deleted function 'std::hash<VID>::hash()'
In file included from /usr/local/lib/gcc8/include/c++/bits/basic_string.h:6617,
                 from /usr/local/lib/gcc8/include/c++/string:52,
                 from /usr/local/lib/gcc8/include/c++/stdexcept:39,
                 from /usr/local/lib/gcc8/include/c++/array:39,
                 from /usr/local/lib/gcc8/include/c++/tuple:39,
                 from /usr/local/lib/gcc8/include/c++/bits/stl_map.h:63,
                 from /usr/local/lib/gcc8/include/c++/map:61,
                 from stdafx.h:19,
                 from OXEvent.cpp:1:
/usr/local/lib/gcc8/include/c++/bits/functional_hash.h:101:12: note: 'std::hash<VID>::hash()' is implicitly deleted because the default definition would be ill-formed:
     struct hash : __hash_enum<_Tp>
            ^~~~
/usr/local/lib/gcc8/include/c++/bits/functional_hash.h:101:12: error: no matching function for call to 'std::__hash_enum<VID, false>::__hash_enum()'
/usr/local/lib/gcc8/include/c++/bits/functional_hash.h:82:7: note: candidate: 'std::__hash_enum<_Tp, <anonymous> >::__hash_enum(std::__hash_enum<_Tp, <anonymous> >&&) [with _Tp = VID; bool <anonymous> = false]'
       __hash_enum(__hash_enum&&);
       ^~~~~~~~~~~
/usr/local/lib/gcc8/include/c++/bits/functional_hash.h:82:7: note:   candidate expects 1 argument, 0 provided
/usr/local/lib/gcc8/include/c++/bits/functional_hash.h:101:12: error: 'std::__hash_enum<_Tp, <anonymous> >::~__hash_enum() [with _Tp = VID; bool <anonymous> = false]' is private within this context
     struct hash : __hash_enum<_Tp>
            ^~~~
/usr/local/lib/gcc8/include/c++/bits/functional_hash.h:83:7: note: declared private here
       ~__hash_enum();
       ^
In file included from /usr/local/lib/gcc8/include/c++/bits/hashtable.h:35,
                 from /usr/local/lib/gcc8/include/c++/unordered_map:46,
                 from questmanager.h:4,
                 from OXEvent.cpp:4:
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1106:7: error: use of deleted function 'std::hash<VID>::~hash()'
       _Hashtable_ebo_helper() = default;
       ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/lib/gcc8/include/c++/bits/basic_string.h:6617,
                 from /usr/local/lib/gcc8/include/c++/string:52,
                 from /usr/local/lib/gcc8/include/c++/stdexcept:39,
                 from /usr/local/lib/gcc8/include/c++/array:39,
                 from /usr/local/lib/gcc8/include/c++/tuple:39,
                 from /usr/local/lib/gcc8/include/c++/bits/stl_map.h:63,
                 from /usr/local/lib/gcc8/include/c++/map:61,
                 from stdafx.h:19,
                 from OXEvent.cpp:1:
/usr/local/lib/gcc8/include/c++/bits/functional_hash.h:101:12: note: 'std::hash<VID>::~hash()' is implicitly deleted because the default definition would be ill-formed:
     struct hash : __hash_enum<_Tp>
            ^~~~
/usr/local/lib/gcc8/include/c++/bits/functional_hash.h:101:12: error: 'std::__hash_enum<_Tp, <anonymous> >::~__hash_enum() [with _Tp = VID; bool <anonymous> = false]' is private within this context
/usr/local/lib/gcc8/include/c++/bits/functional_hash.h:83:7: note: declared private here
       ~__hash_enum();
       ^
In file included from /usr/local/lib/gcc8/include/c++/bits/hashtable.h:35,
                 from /usr/local/lib/gcc8/include/c++/unordered_map:46,
                 from questmanager.h:4,
                 from OXEvent.cpp:4:
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1379:7: error: use of deleted function 'std::__detail::_Hashtable_ebo_helper<1, std::hash<VID>, true>::~_Hashtable_ebo_helper()'
       _Hash_code_base() = default;
       ^~~~~~~~~~~~~~~
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1103:12: note: 'std::__detail::_Hashtable_ebo_helper<1, std::hash<VID>, true>::~_Hashtable_ebo_helper()' is implicitly deleted because the default definition would be ill-formed:
     struct _Hashtable_ebo_helper<_Nm, _Tp, true>
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1103:12: error: use of deleted function 'std::hash<VID>::~hash()'
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1824:5: error: use of deleted function 'std::__detail::_Hash_code_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, true>::~_Hash_code_base()'
     _Hashtable_base() = default;
     ^~~~~~~~~~~~~~~
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1352:12: note: 'std::__detail::_Hash_code_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, true>::~_Hash_code_base()' is implicitly deleted because the default definition would be ill-formed:
     struct _Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2,
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       _Default_ranged_hash, true>
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1352:12: error: use of deleted function 'std::__detail::_Hashtable_ebo_helper<1, std::hash<VID>, true>::~_Hashtable_ebo_helper()'
In file included from /usr/local/lib/gcc8/include/c++/unordered_map:46,
                 from questmanager.h:4,
                 from OXEvent.cpp:4:
/usr/local/lib/gcc8/include/c++/bits/hashtable.h:413:7: error: use of deleted function 'std::__detail::_Hashtable_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::equal_to<VID>, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<true, false, true> >::~_Hashtable_base()'
       _Hashtable() = default;
       ^~~~~~~~~~
In file included from /usr/local/lib/gcc8/include/c++/bits/hashtable.h:35,
                 from /usr/local/lib/gcc8/include/c++/unordered_map:46,
                 from questmanager.h:4,
                 from OXEvent.cpp:4:
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1772:10: note: 'std::__detail::_Hashtable_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::equal_to<VID>, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<true, false, true> >::~_Hashtable_base()' is implicitly deleted because the default definition would be ill-formed:
   struct _Hashtable_base
          ^~~~~~~~~~~~~~~
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1772:10: error: use of deleted function 'std::__detail::_Hash_code_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, true>::~_Hash_code_base()'
In file included from desc.h:7,
                 from OXEvent.cpp:12:
cipher.h: In member function 'void Cipher::Encrypt(void*, size_t)':
cipher.h:31:59: error: ISO C++ forbids declaration of 'type name' with no type  -fpermissive]
     encoder_->ProcessData((CryptoPP::byte*)buffer, (const byte*)buffer, length);
                                                           ^~~~
cipher.h:31:53: error: expected primary-expression before 'const'
     encoder_->ProcessData((CryptoPP::byte*)buffer, (const byte*)buffer, length);
                                                     ^~~~~
cipher.h:31:53: error: expected ')' before 'const'
     encoder_->ProcessData((CryptoPP::byte*)buffer, (const byte*)buffer, length);
                                                    ~^~~~~
                                                     )
cipher.h: In member function 'void Cipher::Decrypt(void*, size_t)':
cipher.h:39:59: error: ISO C++ forbids declaration of 'type name' with no type  -fpermissive]
     decoder_->ProcessData((CryptoPP::byte*)buffer, (const byte*)buffer, length);
                                                           ^~~~
cipher.h:39:53: error: expected primary-expression before 'const'
     decoder_->ProcessData((CryptoPP::byte*)buffer, (const byte*)buffer, length);
                                                     ^~~~~
cipher.h:39:53: error: expected ')' before 'const'
     decoder_->ProcessData((CryptoPP::byte*)buffer, (const byte*)buffer, length);
                                                    ~^~~~~
                                                     )
In file included from /usr/local/lib/gcc8/include/c++/unordered_map:46,
                 from questmanager.h:4,
                 from OXEvent.cpp:4:
/usr/local/lib/gcc8/include/c++/bits/hashtable.h: In instantiation of 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::~_Hashtable() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<VID>; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, true>]':
/usr/local/lib/gcc8/include/c++/bits/unordered_map.h:102:11:   required from here
/usr/local/lib/gcc8/include/c++/bits/hashtable.h:1373:5: error: use of deleted function 'std::__detail::_Hashtable_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::equal_to<VID>, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<true, false, true> >::~_Hashtable_base()'
     }
     ^
gmake[1]: *** [Makefile:104: OBJDIR_GAME/OXEvent.o] Error 1
gmake[1]: Leaving directory '/usr/src/NEW/Server/game/src'
gmake: *** [Makefile:82: all] Error 2

I am trying my best here but I don't seem to get it. I would appreciate any help that will get me closer to fix all these because I see some solid upgrade guides on how to make a more modern core build and I would like to help people struggling with them to make it work. It's a shame to live in 2018 and use obsolete systems, compilers, sources.

Best regards

Link to comment
https://metin2.dev/topic/20031-template-typename-error/#findComment-109612
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.