Skip to content

MSVC C4355 warning #1622

@jbuechner

Description

@jbuechner

When compiling format.cc or when using fmt::format inside other projects, MSVC reports a C4355 for

: Handler(handler), checker_(*this, arg_type) {}
and
: Handler(other), checker_(*this, other.arg_type_) {}

examplary compiler output

format.h(2148,1): error C4355: 'this': used in base member initializer list (compiling source file format.cc)

For our own projects we treat this warning as error.

I would like to suppress the warning inside the format.h file and can prepare a pull request for the required change.

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