Skip to content
Snippets Groups Projects

Use ofstream from std

Merged Harald Minde Hansen requested to merge hahansen/Gaudi:hahansen-master-patch-62174 into master
3 unresolved threads

Spack installation of Gaudi@36.5:

error: 'ofstream' is not a member of 'boost::filesystem'; did you mean 'std::ofstream'?
boost::filesystem::ofstream myfile;

This patch was suggested in https://github.com/spack/spack/pull/30281, which fixes the error.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
629 629 //---------------------------------------------------------------------------
630 630
631 631 void PrecedenceRulesGraph::dumpPrecRules( const boost::filesystem::path& fileName, const EventSlot& slot ) {
632 boost::filesystem::ofstream myfile;
632 std::ofstream myfile;
633 633 myfile.open( fileName, std::ios::app );
  • Comment on lines +632 to 633
    Suggested change
    632 std::ofstream myfile;
    633 myfile.open( fileName, std::ios::app );
    632 std::ofstream myfile{ fileName, std::ios::app };
  • Please register or sign in to reply
  • 670 670
    671 671 //---------------------------------------------------------------------------
    672 672 void PrecedenceRulesGraph::dumpPrecTrace( const boost::filesystem::path& fileName, const EventSlot& slot ) {
    673 boost::filesystem::ofstream myfile;
    673 std::ofstream myfile;
    674 674 myfile.open( fileName, std::ios::app );
    • Comment on lines +673 to 674
      Suggested change
      673 std::ofstream myfile;
      674 myfile.open( fileName, std::ios::app );
      673 std::ofstream myfile{ fileName, std::ios::app };
    • Please register or sign in to reply
  • mentioned in merge request atlas/athena!55604 (closed)

  • Please register or sign in to reply
    Loading