Skip to content

Commit

Permalink
Packed unaligned_type (#989)
Browse files Browse the repository at this point in the history
This way, unaligned_types like etl::be_uint32_t can be used in places where POD types are expected.
jwellbelove committed Dec 20, 2024
1 parent 4cbef7f commit 56c95b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/etl/unaligned_type.h
Original file line number Diff line number Diff line change
@@ -60,10 +60,10 @@ namespace etl
static ETL_CONSTANT size_t Size = Size_;

typedef unsigned char storage_type;
typedef storage_type* pointer;
typedef const storage_type* const_pointer;
typedef storage_type* iterator;
typedef const storage_type* const_iterator;
typedef storage_type* pointer;
typedef const storage_type* const_pointer;
typedef storage_type* iterator;
typedef const storage_type* const_iterator;
typedef etl::reverse_iterator<iterator> reverse_iterator;
typedef etl::reverse_iterator<const_iterator> const_reverse_iterator;

0 comments on commit 56c95b4

Please sign in to comment.