pinterf / TIVTC

TIVTC and TDeint
55 stars 8 forks source link

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

Open knuxyl opened 2 years ago

knuxyl commented 2 years ago

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.