summaryrefslogtreecommitdiff
path: root/lib/glArrays.cpp
blob: 7c5b2eabe8ea6d3feaf273f563224f9d20b4a7e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "glArrays.h"
#include <type_traits>

// Base
static_assert(!std::is_default_constructible_v<glArraysBase<1>>);
static_assert(!std::is_copy_constructible_v<glArraysBase<1>>);
static_assert(!std::is_copy_assignable_v<glArraysBase<1>>);
static_assert(std::is_nothrow_move_constructible_v<glArraysBase<1>>);
static_assert(std::is_nothrow_move_assignable_v<glArraysBase<1>>);

// Specialisations (glBuffer is an example of the typedef)
static_assert(std::is_nothrow_default_constructible_v<glBuffer>);
static_assert(!std::is_trivially_default_constructible_v<glBuffer>);
static_assert(std::is_nothrow_destructible_v<glBuffer>);
static_assert(!std::is_trivially_destructible_v<glBuffer>);
static_assert(std::is_default_constructible_v<glBuffer>);
static_assert(!std::is_copy_constructible_v<glBuffer>);
static_assert(!std::is_copy_assignable_v<glBuffer>);
static_assert(std::is_nothrow_move_constructible_v<glBuffer>);
static_assert(std::is_nothrow_move_assignable_v<glBuffer>);
static_assert(sizeof(glBuffer) == sizeof(GLuint));