From f8facbad699a51f0b5a0800223d0813cca1d34be Mon Sep 17 00:00:00 2001 From: Jelle Date: Sat, 12 Oct 2024 18:39:01 +0100 Subject: [PATCH] Workaround MSVC compiler bug with /permissive- (#146) --- include/FastNoise/Generators/Modifiers.inl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/FastNoise/Generators/Modifiers.inl b/include/FastNoise/Generators/Modifiers.inl index c5e0f331..9540a0ac 100644 --- a/include/FastNoise/Generators/Modifiers.inl +++ b/include/FastNoise/Generators/Modifiers.inl @@ -24,12 +24,12 @@ class FS_T : public virtual FastNoise::DomainOffset template FS_INLINE float32v GenT( int32v seed, P... pos ) const { - return [this, seed]( std::remove_reference_t

... sourcePos, std::remove_reference_t

... offset ) + return [self = this, seed]( std::remove_reference_t

... sourcePos, std::remove_reference_t

... offset ) { size_t idx = 0; - ((offset += this->GetSourceValue( mOffset[idx++], seed, sourcePos... )), ...); + ((offset += self->GetSourceValue( self->mOffset[idx++], seed, sourcePos... )), ...); - return this->GetSourceValue( mSource, seed, offset... ); + return self->GetSourceValue( self->mSource, seed, offset... ); } (pos..., pos...); } };