Sitelet https://github.com/myint/cppclean/issues/138
Skip to content

Types used in template class/method are considered unused #138

Description

@kpopv

helper.h:

class Helper {};

template.h

#include "helper.h"
template <typename T>
struct Foo
{
        Helper helper;
}

Results in

./template.h:1: 'helper.h' does not need to be #included

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions