Skip to content

Commit

Permalink
added noexcept specifier to TRT_Logger::log to avoid looser throw spe…
Browse files Browse the repository at this point in the history
…cifier error (onnx#574)

Signed-off-by: ymaniyar <ymaniyar@nvidia.com>
Signed-off-by: Kevin Chen <kevinch@nvidia.com>
  • Loading branch information
ymaniyar-nv authored and kevinch-nv committed Jul 2, 2021
1 parent afa4e93 commit ed28b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ namespace common
TRT_Logger(Severity verbosity=Severity::kWARNING,
std::ostream& ostream=std::cout)
: _verbosity(verbosity), _ostream(&ostream) {}
void log(Severity severity, const char* msg) override {
void log(Severity severity, const char* msg) noexcept override {
if( severity <= _verbosity ) {
time_t rawtime = std::time(0);
char buf[256];
Expand Down

0 comments on commit ed28b51

Please sign in to comment.