From 8362f863080cd50bd32b5e2e3783a12f08f65b2f Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Mon, 29 Jul 2024 12:02:29 -0400 Subject: [PATCH] Update src/simplnx/Utilities/FilterUtilities.hpp Co-authored-by: Jared Duffey --- src/simplnx/Utilities/FilterUtilities.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/simplnx/Utilities/FilterUtilities.hpp b/src/simplnx/Utilities/FilterUtilities.hpp index 682a0042a9..332739da9e 100644 --- a/src/simplnx/Utilities/FilterUtilities.hpp +++ b/src/simplnx/Utilities/FilterUtilities.hpp @@ -95,9 +95,7 @@ auto RunTemplateClass(DataType dataType, ArgsT&&... args) return ClassT(std::forward(args)...)(); } } - std::stringstream ss; - ss << "FilterUtilities::RunTemplateClass<> Error: dataType did not match any known type. DataType was " << to_underlying(dataType); - throw std::runtime_error(ss.str()); + throw std::runtime_error(fmt::format("FilterUtilities::RunTemplateClass<> Error: dataType did not match any known type. DataType was {}", DataTypeToString(dataType))); } template