Skip to content

Commit

Permalink
Fix Cpp11 include
Browse files Browse the repository at this point in the history
  • Loading branch information
Auburn committed Aug 27, 2024
1 parent 8cb93ff commit 9096fa6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/FastNoise/Generators/Generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ namespace FastNoise
T varArray[(int)Dim::Count];

template<typename U = T>
constexpr PerDimensionVariable( U value = 0 )
#if __cplusplus >= 201402L
constexpr
#endif
PerDimensionVariable( U value = 0 )
{
for( T& element : varArray )
{
Expand Down

0 comments on commit 9096fa6

Please sign in to comment.