coord: test coords are trivial types

This commit is contained in:
Danny Robson 2018-03-22 13:20:00 +11:00
parent 88d514aa9c
commit 370488c498

View File

@ -4,9 +4,14 @@
#include "coord/iostream.hpp"
#include <type_traits>
int
main (void)
{
static_assert (std::is_trivially_copyable_v<util::point2i>);
static_assert (util::has_result_v<util::point3f, util::vector3f>);
static_assert (sizeof (util::point1u) == 1 * sizeof (util::point1u::value_type), "point1u is not packed");