Skip to content

Commit

Permalink
✨ add a shortcut to a tag
Browse files Browse the repository at this point in the history
if C++17 features are enabled
  • Loading branch information
ToruNiina committed Apr 7, 2021
1 parent 0c075ca commit 9eeadd3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libasd/tag.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,13 @@ struct version : std::integral_constant<std::size_t, N>{};
template<std::size_t N> using ch = channel<N>;
template<std::size_t N> using ver = version<N>;

#if __cplusplus >= 201703L
constexpr inline auto ch1 = channel<1>;
constexpr inline auto ch2 = channel<2>;
constexpr inline auto v0 = version<0>;
constexpr inline auto v1 = version<1>;
constexpr inline auto v2 = version<2>;
#endif

} // asd
#endif//LIBASD_CHANNEL_TAG_H

0 comments on commit 9eeadd3

Please sign in to comment.