diff --git a/Source/Engine/Profiler/ProfilerCPU.h b/Source/Engine/Profiler/ProfilerCPU.h index c76c33e27..feccdd79b 100644 --- a/Source/Engine/Profiler/ProfilerCPU.h +++ b/Source/Engine/Profiler/ProfilerCPU.h @@ -387,7 +387,6 @@ struct TIsPODType #define PROFILE_CPU() ZoneTransient(___tracy_scoped_zone, true); ScopeProfileBlockCPU ProfileBlockCPU(TEXT(__FUNCTION__)) #else #define PROFILE_CPU() ZoneNamed(___tracy_scoped_zone, true); ScopeProfileBlockCPU ProfileBlockCPU(TEXT(__FUNCTION__)) - #endif #else @@ -395,7 +394,7 @@ struct TIsPODType #if USE_EDITOR #define PROFILE_CPU() ZoneTransient(___tracy_scoped_zone, true); ScopeProfileBlockCPU ProfileBlockCPU(__FUNCTION__) #else -#define PROFILE_CPU() ZoneNamed(___tracy_scoped_zone, true); ScopeProfileBlockCPU ProfileBlockCPU(_functionNameBuffer) +#define PROFILE_CPU() ZoneNamed(___tracy_scoped_zone, true); ScopeProfileBlockCPU ProfileBlockCPU(__FUNCTION__) #endif #endif diff --git a/Source/ThirdParty/fmt/core.h b/Source/ThirdParty/fmt/core.h index acb7efa6f..0c1050381 100644 --- a/Source/ThirdParty/fmt/core.h +++ b/Source/ThirdParty/fmt/core.h @@ -11,6 +11,7 @@ // Custom configuration for Flax #include "Engine/Platform/Platform.h" #include "Engine/Platform/StringUtils.h" +#include "Engine/Core/Templates.h" #include "Engine/Core/Memory/StlWrapper.h" #define FMT_USE_CONSTEXPR11 0 #define FMT_USE_USER_DEFINED_LITERALS 0 @@ -966,7 +967,7 @@ FMT_CONSTEXPR typename internal::result_of::type template FMT_CONSTEXPR typename internal::result_of::type visit(Visitor &&vis, const basic_format_arg &arg) { - return visit_format_arg(std::forward(vis), arg); + return visit_format_arg(::Forward(vis), arg); } // Parsing context consisting of a format string range being parsed and an @@ -1391,12 +1392,12 @@ class basic_format_args { struct format_args : basic_format_args { template format_args(Args &&... arg) - : basic_format_args(std::forward(arg)...) {} + : basic_format_args(::Forward(arg)...) {} }; struct wformat_args : basic_format_args { template wformat_args(Args &&... arg) - : basic_format_args(std::forward(arg)...) {} + : basic_format_args(::Forward(arg)...) {} }; #define FMT_ENABLE_IF_T(B, T) typename std::enable_if::type diff --git a/Source/ThirdParty/fmt/format.h b/Source/ThirdParty/fmt/format.h index 53e703b2c..1f551a0a4 100644 --- a/Source/ThirdParty/fmt/format.h +++ b/Source/ThirdParty/fmt/format.h @@ -2784,8 +2784,8 @@ struct udl_formatter { template auto operator()(Args &&... args) const - -> decltype(format(str, std::forward(args)...)) { - return format(str, std::forward(args)...); + -> decltype(format(str, ::Forward(args)...)) { + return format(str, ::Forward(args)...); } }; # endif // FMT_UDL_TEMPLATE @@ -2796,7 +2796,7 @@ struct udl_arg { template named_arg operator=(T &&value) const { - return {str, std::forward(value)}; + return {str, ::Forward(value)}; } };