Skip to content

Commit

Permalink
Disable MSVC warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Auburn committed Aug 28, 2021
1 parent 5ffc74b commit 27c556b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/FastNoise/FastNoise.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace FastNoise
template<typename T>
SmartNode<T> New( FastSIMD::eLevel maxSimdLevel /*= FastSIMD::Level_Null*/ )
{
static_assert( std::is_base_of<Generator, T>::value, "Use FastSIMD::New() to create non FastNoise classes" );
static_assert( std::is_base_of<Generator, T>::value, "This function should only be used for FastNoise node classes, for example FastNoise::Simplex" );
static_assert( std::is_member_function_pointer<decltype(&T::GetMetadata)>::value, "Cannot create abstract node class, use a derived class, for example: Fractal -> FractalFBm" );

#if FASTNOISE_USE_SHARED_PTR
Expand Down
5 changes: 5 additions & 0 deletions include/FastNoise/Metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

#include "FastNoise_Config.h"

#pragma warning( push )
#pragma warning( disable : 4251 )

namespace FastNoise
{
class Generator;
Expand Down Expand Up @@ -218,3 +221,5 @@ namespace FastNoise
}
};
}

#pragma warning( pop )

0 comments on commit 27c556b

Please sign in to comment.