From fdbc3ba0eb7ad242aeee36c10e7e4963ab0ac984 Mon Sep 17 00:00:00 2001 From: acdemiralp <demiralpali@gmail.com> Date: Wed, 12 Dec 2018 10:25:00 +0100 Subject: [PATCH] Fixed linking issue due to multiple definitions of ToString and FromString. --- .../Private/Misc/DisplayClusterTypesConverter.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/DisplayCluster/Private/Misc/DisplayClusterTypesConverter.h b/Source/DisplayCluster/Private/Misc/DisplayClusterTypesConverter.h index bb33c6b..885a2dd 100644 --- a/Source/DisplayCluster/Private/Misc/DisplayClusterTypesConverter.h +++ b/Source/DisplayCluster/Private/Misc/DisplayClusterTypesConverter.h @@ -18,7 +18,7 @@ namespace FDisplayClusterTypesConverter // TYPE --> STRING ////////////////////////////////////////////////////////////////////////////////////////////// template <typename ConvertFrom> - FString ToString(const ConvertFrom& from); + static FString ToString(const ConvertFrom& from); template <> FString ToString<> (const FString& from) { return from; } template <> FString ToString<> (const bool& from) { return (from ? DisplayClusterStrings::cfg::spec::ValTrue : DisplayClusterStrings::cfg::spec::ValFalse); } @@ -54,7 +54,7 @@ namespace FDisplayClusterTypesConverter // STRING --> TYPE ////////////////////////////////////////////////////////////////////////////////////////////// template <typename ConvertTo> - ConvertTo FromString(const FString& from); + static ConvertTo FromString(const FString& from); template <> FString FromString<> (const FString& from) { return from; } template <> bool FromString<> (const FString& from) { return (from == FString("1") || from == DisplayClusterStrings::cfg::spec::ValTrue); } -- GitLab