From 8c841d9f4328ccac4adf76d50afc90064c8fd350 Mon Sep 17 00:00:00 2001 From: smithx Date: Sat, 17 May 2025 16:45:46 +0300 Subject: [PATCH 1/2] fix msvc error C2955: 'jinja2::IndexedEnumeratorImpl': use of class template requires template argument list --- src/generic_adapters.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generic_adapters.h b/src/generic_adapters.h index a6493d2..0bcff31 100644 --- a/src/generic_adapters.h +++ b/src/generic_adapters.h @@ -68,7 +68,7 @@ class IndexedListItemAccessorImpl : public IListItemAccessor, public IIndexBased public: using BaseClass = IndexedEnumeratorImpl; #if defined(_MSC_VER) - using IndexedEnumeratorImpl::IndexedEnumeratorImpl; + using IndexedEnumeratorImpl::IndexedEnumeratorImpl; #else using BaseClass::BaseClass; #endif @@ -141,7 +141,7 @@ class IndexedListAccessorImpl : public IListAccessor, public IndexedListItemAcce public: using BaseClass = IndexedEnumeratorImpl; #if defined(_MSC_VER) - using IndexedEnumeratorImpl::IndexedEnumeratorImpl; + using IndexedEnumeratorImpl::IndexedEnumeratorImpl; #else using BaseClass::BaseClass; #endif From 33ef493bdc2c61904b6b8e7c9057c79e4e2ea922 Mon Sep 17 00:00:00 2001 From: smithx Date: Sun, 18 May 2025 14:50:39 +0300 Subject: [PATCH 2/2] fix compilation error C3210 --- src/generic_adapters.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/generic_adapters.h b/src/generic_adapters.h index 0bcff31..f116860 100644 --- a/src/generic_adapters.h +++ b/src/generic_adapters.h @@ -68,7 +68,13 @@ class IndexedListItemAccessorImpl : public IListItemAccessor, public IIndexBased public: using BaseClass = IndexedEnumeratorImpl; #if defined(_MSC_VER) + +#if __cplusplus < 202002L + using IndexedEnumeratorImpl::IndexedEnumeratorImpl; +#else using IndexedEnumeratorImpl::IndexedEnumeratorImpl; +#endif + #else using BaseClass::BaseClass; #endif @@ -141,7 +147,13 @@ class IndexedListAccessorImpl : public IListAccessor, public IndexedListItemAcce public: using BaseClass = IndexedEnumeratorImpl; #if defined(_MSC_VER) + +#if __cplusplus < 202002L + using IndexedEnumeratorImpl::IndexedEnumeratorImpl; +#else using IndexedEnumeratorImpl::IndexedEnumeratorImpl; +#endif + #else using BaseClass::BaseClass; #endif