Skip to content

Conversation

kroening
Copy link
Member

@kroening kroening commented Jul 4, 2024

This introduces a new class output_filet, which

  • given a filename, opens the file for writing, and provides an std::ostream for it; if this fails, an appropriate exception is thrown.

  • given "-", provides a pointer to std::cout

@kroening kroening force-pushed the output_filet branch 2 times, most recently from a4752da to 8d8da0a Compare July 8, 2024 18:16
@kroening kroening marked this pull request as ready for review July 8, 2024 18:20
Copy link
Collaborator

@tautschnig tautschnig left a comment

Choose a reason for hiding this comment

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

Wouldn't this also be useful in the CBMC code base and, hence, should live over there instead?

@tautschnig
Copy link
Collaborator

The code now merged via #573 should now also be revisited.

@kroening
Copy link
Member Author

Wouldn't this also be useful in the CBMC code base and, hence, should live over there instead?

Yes, will do.

This introduces a new class output_filet, which

* given a filename, opens the file for writing, and provides an std::ostream
  for it; if this fails, an appropriate exception is thrown.

* given "-", provides a pointer to std::cout
@kroening kroening merged commit f59c64d into main Jul 10, 2024
@kroening kroening deleted the output_filet branch July 10, 2024 19:51
Romy15200 pushed a commit to Romy15200/nws that referenced this pull request Aug 19, 2025
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