diff options
author | Éanna Ó Catháin <eanna.ocathain@arm.com> | 2020-04-27 12:54:11 +0100 |
---|---|---|
committer | Éanna Ó Catháin <eanna.ocathain@arm.com> | 2020-04-27 12:54:32 +0100 |
commit | 49c52a1e3be742cd7785ccc36c31cbbe495c4003 (patch) | |
tree | 5402a98f526a278192a8f27450bf31a1a7a8ed17 /src/timelineDecoder/JSONTimelineDecoder.cpp | |
parent | 0886ac4c403378ac0df85ab520a5db319be525a4 (diff) | |
download | armnn-49c52a1e3be742cd7785ccc36c31cbbe495c4003.tar.gz |
IVGCVSW-4728 Attempt to fix test failures
Change-Id: I0e0d4a8338c7df4f09518d9f84605b3cc002f2b0
Signed-off-by: Éanna Ó Catháin <eanna.ocathain@arm.com>
Diffstat (limited to 'src/timelineDecoder/JSONTimelineDecoder.cpp')
-rw-r--r-- | src/timelineDecoder/JSONTimelineDecoder.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/timelineDecoder/JSONTimelineDecoder.cpp b/src/timelineDecoder/JSONTimelineDecoder.cpp index 520995afe9..84472d8c99 100644 --- a/src/timelineDecoder/JSONTimelineDecoder.cpp +++ b/src/timelineDecoder/JSONTimelineDecoder.cpp @@ -8,6 +8,7 @@ #include <string> #include <fstream> +#include <boost/filesystem/fstream.hpp> namespace armnn { @@ -245,9 +246,9 @@ void JSONTimelineDecoder::JSONEntity::SetParent(JSONEntity& parent) void JSONTimelineDecoder::PrintJSON(JSONTimelineDecoder::JSONEntity& rootEntity) { std::string jsonString = GetJSONString(rootEntity); - std::ofstream outfile; - outfile.open(this->outputJSONFile); - outfile << jsonString; + boost::filesystem::ofstream ofs{this->outputJSONFile}; + ofs << jsonString; + ofs.close(); } std::string JSONTimelineDecoder::GetJSONString(JSONTimelineDecoder::JSONEntity& rootEntity) |