Skip to content

Commit

Permalink
Workaround MSVC compiler bug with /permissive- (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
duckdoom5 authored Oct 12, 2024
1 parent 9937723 commit f8facba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/FastNoise/Generators/Modifiers.inl
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ class FS_T<FastNoise::DomainOffset, FS> : public virtual FastNoise::DomainOffset
template<typename... P>
FS_INLINE float32v GenT( int32v seed, P... pos ) const
{
return [this, seed]( std::remove_reference_t<P>... sourcePos, std::remove_reference_t<P>... offset )
return [self = this, seed]( std::remove_reference_t<P>... sourcePos, std::remove_reference_t<P>... 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...);
}
};
Expand Down

0 comments on commit f8facba

Please sign in to comment.