diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-11-07 23:38:52 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-12-20 15:35:58 +0100 |
commit | ac47be51b79f4c3e49656870e135453eefe759ea (patch) | |
tree | 80b2ce06d827ad218e3e76593fc23a71b1d6655c /asl/layout.hpp | |
parent | 261076b35fe684642da50d3b6208469cf972f269 (diff) |
Some more work on asl::string_view
Diffstat (limited to 'asl/layout.hpp')
-rw-r--r-- | asl/layout.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/asl/layout.hpp b/asl/layout.hpp index 5141456..06fbe10 100644 --- a/asl/layout.hpp +++ b/asl/layout.hpp @@ -7,15 +7,15 @@ namespace asl {
template<typename T>
-inline constexpr int64_t size_of = static_cast<int64_t>(sizeof(T));
+inline constexpr isize_t size_of = static_cast<isize_t>(sizeof(T));
template<typename T>
-inline constexpr int64_t align_of = static_cast<int64_t>(alignof(T));
+inline constexpr isize_t align_of = static_cast<isize_t>(alignof(T));
struct layout
{
- int64_t size;
- int64_t align;
+ isize_t size;
+ isize_t align;
constexpr bool operator==(const layout&) const = default;
|