Skip to content

Commit

Permalink
Fix AcademySoftwareFoundation#246, add type traits check
Browse files Browse the repository at this point in the history
previous cleanup did most of the work, but add an explicit test that
half is now trivial and default constructible

Signed-off-by: Kimball Thurston <[email protected]>
  • Loading branch information
kdt3rd committed Jul 23, 2019
1 parent 625b95f commit cefa696
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion IlmBase/HalfTest/testClassification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@
#include "half.h"
#include <iostream>
#include <assert.h>

#include <type_traits>

using namespace std;

namespace {

static_assert(std::is_trivially_default_constructible<half>::value, "half is trivial and default constructible");

void
testClass (half h,
bool finite,
Expand Down

0 comments on commit cefa696

Please sign in to comment.