Skip to content

clang-tidy failure on provided example #404

Description

@jefftrull

The current main will fail clang-tidy (but pass clang and gcc compilation) on a simple example from the docs:

#include <stdx/ct_format.hpp>
int main() {
    auto s = stdx::ct_format<"Hello {} {}">(CX_VALUE(42), 17);
}

The errors are:

stdx/ct_format.hpp:348:28: error: constexpr variable 'sz' must be initialized by a constant expression [clang-diagnostic-error]
stdx/ct_format.hpp:349:34: error: no matching function for call to 'perform_format' [clang-diagnostic-error]

I believe the source of this problem is a commit in the fmt library as described in this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions