Skip to content

Commit

Permalink
only perform check in c++14 to avoid old c++11 standards deficient co…
Browse files Browse the repository at this point in the history
…mpilers

Signed-off-by: Kimball Thurston <[email protected]>
  • Loading branch information
kdt3rd committed Aug 10, 2019
1 parent fea79fa commit d25fe81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions IlmBase/HalfTest/testClassification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ using namespace std;

namespace {

#if __cplusplus >= 201402L
static_assert(std::is_trivially_default_constructible<half>::value, "half is trivial and default constructible");
#endif

void
testClass (half h,
Expand Down

0 comments on commit d25fe81

Please sign in to comment.