From c712d72297ad5d8dca5e61b2d93a034312fda79d Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Mon, 22 Oct 2018 19:05:03 -0700 Subject: Fixed https://github.com/DiligentGraphics/DiligentCore/issues/37 (build error on VS2015) --- Primitives/interface/FormatString.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Primitives/interface') diff --git a/Primitives/interface/FormatString.h b/Primitives/interface/FormatString.h index 993abbaf..a3e046d9 100644 --- a/Primitives/interface/FormatString.h +++ b/Primitives/interface/FormatString.h @@ -57,9 +57,14 @@ namespace Diligent template struct MemorySizeFormatter { - Type size = 0; + MemorySizeFormatter(Type _size, size_t _precision, Type _ref_size) : + size (_size), + precision(_precision), + ref_size (_ref_size) + {} + Type size = 0; size_t precision = 0; - Type ref_size = 0; + Type ref_size = 0; }; template -- cgit v1.2.3