Skip to content

Commit ed28b51

Browse files
ymaniyar-nvkevinch-nv
authored andcommitted
added noexcept specifier to TRT_Logger::log to avoid looser throw specifier error (onnx#574)
Signed-off-by: ymaniyar <[email protected]> Signed-off-by: Kevin Chen <[email protected]>
1 parent afa4e93 commit ed28b51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ namespace common
6060
TRT_Logger(Severity verbosity=Severity::kWARNING,
6161
std::ostream& ostream=std::cout)
6262
: _verbosity(verbosity), _ostream(&ostream) {}
63-
void log(Severity severity, const char* msg) override {
63+
void log(Severity severity, const char* msg) noexcept override {
6464
if( severity <= _verbosity ) {
6565
time_t rawtime = std::time(0);
6666
char buf[256];

0 commit comments

Comments
 (0)