sarojvarma / include-what-you-use

Automatically exported from code.google.com/p/include-what-you-use
Other
0 stars 0 forks source link

iwyu suggests too much to add: type_traits #142

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
==> traits.cc <==
#include <string>
#include <utility>
int main() {
    std::string s("dsf");
    std::make_pair("sdfasf", std::move(s));
    return 0;
}
traits.cc should add these lines:
#include <type_traits>                  // for remove_reference<>::type

Seems related to issue #105. I get the same result for 3.4.1 and HEAD and for 
stdc++ and libc++.

Original issue reported on code.google.com by rol...@rschulz.eu on 31 May 2014 at 5:42