User Activity

  • Posted a comment on discussion General Discussion on cppcheck

    For me, the problem is only in the std::move is used in the initialization list. In the following example, cppcheck is reporting an issue only in line 6 (constructor) while it's not reporting an issue for line 8 (function). I'm using cppcheck 1.82. struct A { std::vector<int> x; }; struct B { explicit B(A a) : a(std::move(a)) {} void Init(A _a) { a = std::move(_a); } A a; };

View All

Personal Data

Username:
jkotur
Joined:
2011-03-14 17:09:23

Projects

This is a list of open source software projects that Jakub Kotur is associated with:

Personal Tools

MongoDB Logo MongoDB