Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header discipline in base #1108

Merged
merged 8 commits into from
Feb 17, 2022
Merged

Header discipline in base #1108

merged 8 commits into from
Feb 17, 2022

Conversation

dellaert
Copy link
Member

Trying to cut down on compile times, so

  • moved serialization of Vector and Matrix into separate headers, sparsely included
  • moved various other includes out of base header files
  • fixed issues related to those

@@ -33,6 +34,7 @@
#include <fstream>
#include <limits>
#include <iostream>
#include <iostream>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplicate

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you reviewed everything and you trust me to fix the above, approve??

Copy link
Collaborator

@varunagrawal varunagrawal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is this cool tool called include-what-you-use which we should probably leverage.

#include <iostream>
#include <cstdlib>
#include <fstream>
#include <sstream>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure fstream includes iostream for us, but I like being explicit so yay!

Copy link
Collaborator

@varunagrawal varunagrawal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took a deeper look and LGTM

@dellaert
Copy link
Member Author

There is this cool tool called include-what-you-use which we should probably leverage.

Yeah, tried that at one point. Its not so great for large repos with boost and Eigen. Maybe we should try it again.

@dellaert dellaert merged commit 55ad184 into develop Feb 17, 2022
@dellaert dellaert deleted the fix/headers branch February 17, 2022 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants