Skip to content

Commit

Permalink
iox-eclipse-iceoryx#1900 Apply reviewer's comments
Browse files Browse the repository at this point in the history
Signed-off-by: Ziad Mostafa <[email protected]>
  • Loading branch information
Ziad Mostafa committed Feb 20, 2023
1 parent bd327db commit 9c6ed22
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions doc/website/release-notes/iceoryx-unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -1022,3 +1022,17 @@
// after
#include "iox/duration.hpp"
```
46. Renaming `byte_t` to `byte`
`byte` is not a simple type alias, now it is a distinct type like c++17 `std::byte`.
The type `byte` does not support any arithmetic operations nor has member functions.

```cpp
//before
using byte_t = uint8_t;
iox::byte_t m_size;

//after
enum class byte : uint8_t {};
iox::byte m_size;
```

Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ namespace iox
namespace cxx
{
/// @deprecated use `iox::byte` instead of `iox::cxx::byte_t`
using byte_t = byte;

} // namespace cxx
namespace log
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#define IOX_HOOFS_VOCABULARY_VARIANT_INTERNAL_HPP

#include "iceoryx_hoofs/cxx/requires.hpp"
#include "iox/iceoryx_hoofs_types.hpp"

#include <cstdint>
#include <type_traits>
Expand Down
1 change: 1 addition & 0 deletions iceoryx_hoofs/vocabulary/include/iox/variant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include "iox/algorithm.hpp"
#include "iox/detail/variant_internal.hpp"
#include "iox/iceoryx_hoofs_types.hpp"

#include <cstdint>
#include <iostream>
Expand Down

0 comments on commit 9c6ed22

Please sign in to comment.