integer type

v1
Brett 2024-06-21 17:35:19 -04:00
parent 9ad96191ff
commit 1ca46b9d7b
3 changed files with 21 additions and 2 deletions

View File

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.20)
include(cmake/color.cmake)
set(BLT_VERSION 0.17.15)
set(BLT_VERSION 0.17.16)
set(BLT_TEST_VERSION 0.0.1)
set(BLT_TARGET BLT)

View File

@ -44,4 +44,23 @@ namespace blt
}
#endif
namespace blt
{
template<typename T>
struct integer_type
{
T id;
integer_type() = default;
integer_type(T id): id(id) // NOLINT
{}
inline operator T() const // NOLINT
{
return id;
}
};
}
#endif //BLT_TYPES_H

@ -1 +1 @@
Subproject commit 10368163ab1f4367d2f0685b5928b1c973ebd1ec
Subproject commit d88c5e15079047777b418132ece5879e7c9aaa2b