Skip to content

Commit

Permalink
Fix #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 <kdt3rd@gmail.com>
  • Loading branch information
kdt3rd committed Aug 10, 2019
1 parent b0acdd7 commit 5323c34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion IlmBase/HalfTest/testClassification.cpp
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 5323c34

Please sign in to comment.