# HG changeset patch # User František Kučera # Date 1520173224 -3600 # Node ID b5e31973fe2016120149f7bbaf1560fb83591425 # Parent b63d62c675fe8da1bb87cd062ab9a7156b502785 use alias declaration instead of a typedef diff -r b63d62c675fe -r b5e31973fe20 c++/rgb-assembler/types.h --- a/c++/rgb-assembler/types.h Thu Dec 28 23:11:43 2017 +0100 +++ b/c++/rgb-assembler/types.h Sun Mar 04 15:20:24 2018 +0100 @@ -20,11 +20,11 @@ #include -typedef uint16_t address_t; -typedef uint8_t octet_t; -typedef uint8_t command_t; -typedef uint8_t sleep_t; -typedef uint8_t color_t; -typedef uint8_t led_t; +using address_t = uint16_t; +using octet_t = uint8_t; +using command_t = uint8_t; +using sleep_t = uint8_t; +using color_t = uint8_t; +using led_t = uint8_t; // TODO: strong typedefs http://www.boost.org/doc/libs/1_61_0/libs/serialization/doc/strong_typedef.html ?