From 3d5e75213980c3b12fea81d4272c345c3f45bd8d Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Fri, 9 Oct 2020 20:28:11 +0200 Subject: [PATCH] encoders/handlers/debug: Always return something in to_string (#354) --- source/encoders/handlers/debug_handler.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/encoders/handlers/debug_handler.cpp b/source/encoders/handlers/debug_handler.cpp index 42a4b5a9..2de298ad 100644 --- a/source/encoders/handlers/debug_handler.cpp +++ b/source/encoders/handlers/debug_handler.cpp @@ -40,7 +40,10 @@ using namespace streamfx::encoder::ffmpeg::handler; void debug_handler::get_defaults(obs_data_t*, const AVCodec*, AVCodecContext*, bool) {} template -std::string to_string(T value){}; +std::string to_string(T value) +{ + return std::string("Error: to_string not implemented for this type!"); +}; template<> std::string to_string(int64_t value)