Hello, I am new to creating servers and I have trouble compiling my first server. I followed all of the tutorials out there, but I keep getting this error on line 1580. Any suggestions?
Severity Code Description Project File Line Suppression State Suppression State
Error C2664 'void std::_Normal_allocator_traits<_Alloc>::destroy<_Ty>(_Alloc &,_Ty *)': cannot convert argument 1 from '_Alloc' to '_Alloc &'
with
[
_Alloc=LockfreePoolingAllocator<OutputMessage,2048>,
_Ty=OutputMessage
]
and
[
_Alloc=OutputMessageAllocator
]
and
[
_Alloc=LockfreePoolingAllocator<OutputMessage,2048>
] (compiling source file ..\src\outputmessage.cpp) theforgottenserver C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\memory 1580
Severity Code Description Project File Line Suppression State Suppression State
Error C2664 'void std::_Normal_allocator_traits<_Alloc>::destroy<_Ty>(_Alloc &,_Ty *)': cannot convert argument 1 from '_Alloc' to '_Alloc &'
with
[
_Alloc=LockfreePoolingAllocator<OutputMessage,2048>,
_Ty=OutputMessage
]
and
[
_Alloc=OutputMessageAllocator
]
and
[
_Alloc=LockfreePoolingAllocator<OutputMessage,2048>
] (compiling source file ..\src\outputmessage.cpp) theforgottenserver C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\memory 1580