c++/rgb-assembler/types.h
changeset 38 b5e31973fe20
parent 29 10d6964e7b4a
     1.1 --- a/c++/rgb-assembler/types.h	Thu Dec 28 23:11:43 2017 +0100
     1.2 +++ b/c++/rgb-assembler/types.h	Sun Mar 04 15:20:24 2018 +0100
     1.3 @@ -20,11 +20,11 @@
     1.4  
     1.5  #include <cstdint>
     1.6  
     1.7 -typedef uint16_t address_t;
     1.8 -typedef uint8_t octet_t;
     1.9 -typedef uint8_t command_t;
    1.10 -typedef uint8_t sleep_t;
    1.11 -typedef uint8_t color_t;
    1.12 -typedef uint8_t led_t;
    1.13 +using address_t = uint16_t;
    1.14 +using octet_t = uint8_t;
    1.15 +using command_t = uint8_t;
    1.16 +using sleep_t = uint8_t;
    1.17 +using color_t = uint8_t;
    1.18 +using led_t = uint8_t;
    1.19  
    1.20  // TODO: strong typedefs http://www.boost.org/doc/libs/1_61_0/libs/serialization/doc/strong_typedef.html ?