From 8bf80709231f579c4cd2ece17370de191819d0f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Mon, 28 Mar 2022 21:40:44 +0200 Subject: [PATCH] fixed build with SmallVector (noExplicitConstructor warning and incorrect C++ standard for Visual Studio `*-PCRE` configuration) (#3937) --- cli/cli.vcxproj | 8 ++++---- lib/smallvector.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cli/cli.vcxproj b/cli/cli.vcxproj index 8646760bc..7f12fcce5 100644 --- a/cli/cli.vcxproj +++ b/cli/cli.vcxproj @@ -194,7 +194,7 @@ 4018;4127;4146;4244;4251;4267;4389;4482;4512;4701;4706;4800;4805 true true - stdcpplatest + stdcpp14 /Zc:throwingNew /Zc:__cplusplus %(AdditionalOptions) @@ -245,7 +245,7 @@ 4018;4127;4146;4244;4251;4267;4389;4482;4512;4701;4706;4800;4805 true true - stdcpplatest + stdcpp14 /Zc:throwingNew /Zc:__cplusplus %(AdditionalOptions) @@ -312,7 +312,7 @@ true /Zc:throwingNew /Zc:__cplusplus %(AdditionalOptions) true - stdcpplatest + stdcpp14 shlwapi.lib;%(AdditionalDependencies) @@ -383,7 +383,7 @@ true /Zc:throwingNew /Zc:__cplusplus %(AdditionalOptions) true - stdcpplatest + stdcpp14 shlwapi.lib;%(AdditionalDependencies) diff --git a/lib/smallvector.h b/lib/smallvector.h index acdba2562..49d0c7be1 100644 --- a/lib/smallvector.h +++ b/lib/smallvector.h @@ -35,7 +35,7 @@ template struct TaggedAllocator : std::allocator { template - TaggedAllocator(Ts&&... ts) + explicit TaggedAllocator(Ts&&... ts) : std::allocator(std::forward(ts)...) {} };