diff options
author | crupest <crupest@outlook.com> | 2020-05-23 23:50:00 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-05-23 23:50:00 +0800 |
commit | f3a8fd608a9776ef0a5f547da918a32cf6074060 (patch) | |
tree | 85b320479296ae12339ee1e28bab66ab001cb44b /include/cru/platform/check.hpp | |
parent | 75ff8a6a05afd02aaadf7e3049b0a0e305241182 (diff) | |
download | cru-f3a8fd608a9776ef0a5f547da918a32cf6074060.tar.gz cru-f3a8fd608a9776ef0a5f547da918a32cf6074060.tar.bz2 cru-f3a8fd608a9776ef0a5f547da918a32cf6074060.zip |
...
Diffstat (limited to 'include/cru/platform/check.hpp')
-rw-r--r-- | include/cru/platform/check.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/cru/platform/check.hpp b/include/cru/platform/check.hpp index 6128fe5a..6e353afb 100644 --- a/include/cru/platform/check.hpp +++ b/include/cru/platform/check.hpp @@ -1,8 +1,8 @@ #pragma once -#include "cru/common/format.hpp" #include "exception.hpp" #include "resource.hpp" +#include <fmt/format.h> #include <memory> #include <type_traits> @@ -13,7 +13,7 @@ TTarget* CheckPlatform(INativeResource* resource, Expects(resource); const auto result = dynamic_cast<TTarget*>(resource); if (result == nullptr) { - throw UnsupportPlatformException(util::Format( + throw UnsupportPlatformException(fmt::format( "Try to convert resource to target platform failed. Platform id of " "resource to convert: {} . Target platform id: {} .", resource->GetPlatformId(), target_platform)); @@ -30,7 +30,7 @@ std::shared_ptr<TTarget> CheckPlatform( Expects(resource); const auto result = std::dynamic_pointer_cast<TTarget>(resource); if (result == nullptr) { - throw UnsupportPlatformException(util::Format( + throw UnsupportPlatformException(fmt::format( "Try to convert resource to target platform failed. Platform id of " "resource to convert: {} . Target platform id: {} .", resource->GetPlatformId(), target_platform)); |