Skip to content

#include <inja/environment.hpp>: unknown type name 'json' #309

@Spixmaster

Description

@Spixmaster

Since Arch Linux packaged this library officially in the last hours, my previous package is no longer used.

My package installed the single header file. Now, the official package does not do that which enables new errors.

There is a fundamental error in this library where header files themselves rely on other files which include them to also include needed header files.

#include <inja/environment.hpp> causes errors, In included file: unknown type name 'json' /usr/include/inja/function_storage.hpp:9:37: note: error occurred here [unknown_typename].

Individual files do not work on themselves.

Clang-tidy recommends only including files which are directly needed which is not possible in the current state of this library.

This really needs to be fixed.

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