TIVTC icon indicating copy to clipboard operation
TIVTC copied to clipboard

Add #include <memory> to src/info.cpp (unique_ptr, current_font, GetBitmapFont errors)

Open knuxyl opened this issue 3 years ago • 0 comments

On Arch with latest everything (compiler, kernels, etc), tivtc fails to compile due to unique_ptr not being a member of "std". The solution is to add #include to the top of src/info.cpp.

This allows compilation, but then at runtime this is thrown /usr/include/c++/11.2.0/bits/unique_ptr.h:659: typename std::add_lvalue_reference<_Tp>::type std::unique_ptr<_Tp [], _Dp>::operator const [with _Tp = MTGuardChildFilter; _Dp = std::default_delete<MTGuardChildFilter []>; typename std::add_lvalue_reference<_Tp>::type = MTGuardChildFilter&; std::size_t = long unsigned int]: Assertion 'get() != pointer()' failed.

knuxyl avatar Jul 08 '22 07:07 knuxyl