From 1ba73fa183c775d9c8ae93951925ed29606c2626 Mon Sep 17 00:00:00 2001 From: Olaf van der Spek Date: Sun, 22 Jan 2017 14:39:02 +0100 Subject: [PATCH] MSVC supports mutable on structs --- src/ctemplate/template_string.h.in | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/ctemplate/template_string.h.in b/src/ctemplate/template_string.h.in index 6a96575..130606b 100755 --- a/src/ctemplate/template_string.h.in +++ b/src/ctemplate/template_string.h.in @@ -122,14 +122,7 @@ struct @ac_windows_dllexport@ StaticTemplateString { // These members shouldn't be accessed directly, except in the // internals of the template code. They are public because that is - // the only way we can brace-initialize them. NOTE: MSVC (at least - // up to 8.0) has a bug where it ignores 'mutable' when it's buried - // in an internal struct. To fix that, we have to make this whole - // internal struct mutable. We only do this on MSVC, so on other - // compilers we get the full constness we want. -#ifdef _MSC_VER - mutable -#endif + // the only way we can brace-initialize them. struct { const char* ptr_; size_t length_;