From 6551e33781e11fb03eba6e265377b7d62a6692c1 Mon Sep 17 00:00:00 2001 From: Stephane Janel Date: Mon, 2 Oct 2023 09:37:00 +0200 Subject: [PATCH] Some MSVC compiler bug has been fixed, remove workaround --- src/tech/include/cct_exception.hpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/tech/include/cct_exception.hpp b/src/tech/include/cct_exception.hpp index d0f3bf34..762eee9a 100644 --- a/src/tech/include/cct_exception.hpp +++ b/src/tech/include/cct_exception.hpp @@ -34,18 +34,10 @@ class exception : public std::exception { explicit exception(string&& str) noexcept(std::is_nothrow_move_constructible_v) : _data(std::move(str)) {} -#ifdef CCT_MSVC - // MSVC bug: https://developercommunity.visualstudio.com/t/using-fmtlib-on-a-custom-exceptions-constructor-pa/1673659 - // do not use fmt for building an exception waiting for the bug to be fixed... - // Exception message will be incorrect. - template - explicit exception(std::string_view fmt, Args&&...) : _data(std::in_place_type, fmt) {} -#else template explicit exception(format_string fmt, Args&&... args) : _data(std::in_place_type) { cct::format_to(std::back_inserter(std::get<1>(_data)), fmt, std::forward(args)...); } -#endif const char* what() const noexcept override { switch (_data.index()) {