[ox/std] Move bit.hpp static_asserts to cpp file
This commit is contained in:
14
deps/ox/src/ox/std/bit.cpp
vendored
Normal file
14
deps/ox/src/ox/std/bit.cpp
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
/*
|
||||
* Copyright 2015 - 2022 gary@drinkingtea.net
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#include "bit.hpp"
|
||||
|
||||
static_assert(ox::onMask<int>(1) == 0b0001);
|
||||
static_assert(ox::onMask<int>(2) == 0b0011);
|
||||
static_assert(ox::onMask<int>(3) == 0b0111);
|
||||
static_assert(ox::onMask<int>(4) == 0b1111);
|
Reference in New Issue
Block a user