Skip to content

Commit

Permalink
fix: add workaround for intel parameter pack bug
Browse files Browse the repository at this point in the history
  • Loading branch information
joshessman-llnl committed Oct 14, 2021
1 parent 1ca8bca commit 6a7d900
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/fmt/os.h
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,13 @@ struct ostream_params {
: ostream_params(params...) {
this->buffer_size = bs.value;
}

// Intel has a bug that results in failure to deduce a constructor
// for empty parameter packs.
#if defined(__INTEL_COMPILER) && __INTEL_COMPILER < 2000
ostream_params(int new_oflag) : oflag(new_oflag) {}
ostream_params(detail::buffer_size bs) : buffer_size(bs.value) {}
#endif
};

FMT_END_DETAIL_NAMESPACE
Expand Down

0 comments on commit 6a7d900

Please sign in to comment.