-
Notifications
You must be signed in to change notification settings - Fork 447
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
Remove boost::filesystem from P4Testgen. #3944
Conversation
@@ -77,7 +77,7 @@ const BMv2_V1ModelProgramInfo *BMv2_V1ModelTestgenTarget::initProgram_impl( | |||
|
|||
Bmv2TestBackend *BMv2_V1ModelTestgenTarget::getTestBackend_impl( | |||
const ProgramInfo &programInfo, SymbolicExecutor &symbex, | |||
const boost::filesystem::path &testPath, boost::optional<uint32_t> seed) const { | |||
const std::filesystem::path &testPath, boost::optional<uint32_t> seed) const { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change boost::optional
to std::optional
too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the corresponding PR can be found here: #3942
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will also try to do this for std::variant, but that is a bit more tricky.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it, is there a reason we are moving away from boost - is it to avoid extra dependencies?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, boost adds compile time and binary size overhead. It is also one of the major sources for build issues (next to protobuf). So I am trying to at least fix some low-hanging fruits.
971c3be
to
e90e792
Compare
e90e792
to
80d1b8e
Compare
No description provided.