Skip to content

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

@knuxyl

Description

@knuxyl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions